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:
YuSanka 2018-02-07 17:13:52 +01:00
parent 407f50a66f
commit 28115a847c
16 changed files with 62 additions and 54 deletions

View file

@ -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;
}