Localization setup modified

This commit is contained in:
2016-03-14 17:06:26 +01:00
parent 3e3e311a62
commit 5edfe17fae
3 changed files with 32 additions and 7 deletions

View File

@@ -150,13 +150,14 @@ int _tmain(int argc, _TCHAR *argv[])
// Set desired locale.
wxLocale locale;
{
wxLanguage language = (wxLanguage)config.Read(wxT("Language"), wxLANGUAGE_DEFAULT);
if (wxLocale::IsAvailable(language)) {
wxString sPath;
if (config.Read(wxT("LocalizationRepositoryPath"), &sPath))
locale.AddCatalogLookupPathPrefix(sPath);
wxVERIFY(locale.Init(language));
wxVERIFY(locale.AddCatalog(wxT("ZRColaCompile")));
}
wxVERIFY(locale.Init(config.Read(wxT("Language"), wxLANGUAGE_DEFAULT)));
wxVERIFY(locale.AddCatalog(wxT("ZRColaCompile")));
// Parse command line.
static const wxCmdLineEntryDesc cmdLineDesc[] =