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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user