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

@ -10,6 +10,7 @@ class wxFrame;
class wxWindow;
class wxMenuBar;
class wxNotebook;
class wxString;
namespace Slic3r {
@ -19,6 +20,11 @@ class AppConfig;
class DynamicPrintConfig;
class TabIface;
//! macro used to localization, return wxString
#define _L(s) wxGetTranslation(s)
//! macro used to localization, return const CharType *
#define _LU8(s) wxGetTranslation(s).ToUTF8().data()
namespace GUI {
class Tab;
@ -63,8 +69,8 @@ void add_created_tab(Tab* panel, PresetBundle *preset_bundle, AppConfig *app_con
// Change option value in config
void change_opt_value(DynamicPrintConfig& config, t_config_option_key opt_key, boost::any value);
void show_error(wxWindow* parent, std::string message);
void show_info(wxWindow* parent, std::string message, std::string title);
void show_error(wxWindow* parent, wxString message);
void show_info(wxWindow* parent, wxString message, wxString title);
wxApp* get_app();