Add localization resources.

Using 'Lokalize'.

Fails to work when L7Test is run:
  L7.mo in dir containing L7Test, or in /usr/local/share/locale/fr/LC_MESSAGES/.
This commit is contained in:
SET
2022-10-15 21:46:05 +02:00
parent f7e210a356
commit 2b318e2524
7 changed files with 136 additions and 1 deletions

View File

@@ -31,6 +31,12 @@ bool L7Test::OnInit()
{
L7Frame * main = new L7Frame(NULL, wxID_ANY, _T("L7 Test"));
SetAppName(_T("L7Test"));
// Fails here : L7.mo in dir containing L7Test, or in /usr/local/share/locale/fr/LC_MESSAGES/.
m_locale.Init(wxLANGUAGE_DEFAULT);
wxTranslations::Get()->AddStdCatalog();
m_locale.AddCatalog(_T("L7"));
SetTopWindow(main);
main->Show();
return true;

View File

@@ -37,7 +37,7 @@ public:
private:
wxLocale m_locale;
};
class L7Frame : public wxFrame