All project is ready to localization.

* Macro _LC is changed to _CHB. [to put translated string into std::string correctly]
* Macro _LS is changed to L.    [to mark string to translation]
* Standard wxWidgets macro _() is used for translation now.
* Updated POfile for EN
This commit is contained in:
YuSanka 2018-02-23 09:16:35 +01:00
parent cec12e203a
commit baa5726532
13 changed files with 4683 additions and 3429 deletions

View file

@ -23,13 +23,16 @@ class AppConfig;
class DynamicPrintConfig;
class TabIface;
//! macro used to localization, return wxString
#define _L(s) wxGetTranslation(s)
// !!! If you needed to translate some wxString,
// !!! please use _(L(string))
// !!! _() - is a standard wxWidgets macro to translate
// !!! L() is used only for marking localizable string
// !!! It will be used in "xgettext" to create a Locating Message Catalog.
#define L(s) s
//! macro used to localization, return wxScopedCharBuffer
//! With wxConvUTF8 explicitly specify that the source string is already in UTF-8 encoding
#define _LC(s) wxGetTranslation(wxString(s, wxConvUTF8)).utf8_str()
//! macro used to mark string used at localization, return same string
#define _LS(s) s
#define _CHB(s) wxGetTranslation(wxString(s, wxConvUTF8)).utf8_str()
namespace GUI {