mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 17:27:52 -06:00
First steps for implementing localization
* Created mo-files for Ukrainian and English languages * For this moment it works only on BedShapeDialog.
This commit is contained in:
parent
407f50a66f
commit
28115a847c
16 changed files with 62 additions and 54 deletions
|
@ -30,10 +30,11 @@ namespace Slic3r { namespace GUI {
|
|||
wxString Field::get_tooltip_text(const wxString& default_string)
|
||||
{
|
||||
wxString tooltip_text("");
|
||||
if (m_opt.tooltip.length() > 0)
|
||||
wxString tooltip = wxString::FromUTF8(m_opt.tooltip.c_str());
|
||||
if (tooltip.length() > 0)
|
||||
tooltip_text = boost::iends_with(m_opt_id, "_gcode") ?
|
||||
m_opt.tooltip + "(default: \n" + default_string + ")" :
|
||||
m_opt.tooltip + "(default: " + default_string + ")";
|
||||
tooltip + "(" + _L("default") + ": \n" + default_string + ")" :
|
||||
tooltip + "(" + _L("default") + ": " + default_string + ")";
|
||||
|
||||
return tooltip_text;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue