diff --git a/MSI/ZRCola/Main/Makefile b/MSI/ZRCola/Main/Makefile index 2311927..c5e052a 100644 --- a/MSI/ZRCola/Main/Makefile +++ b/MSI/ZRCola/Main/Makefile @@ -436,7 +436,6 @@ ARPHELPTELEPHONE +386 1 470 6170 ARPURLINFOABOUT http://zrcola.zrc-sazu.si/en/contact/ ARPHELPLINK http://zrcola.zrc-sazu.si/en/info/instructions/ ARPURLUPDATEINFO http://zrcola.zrc-sazu.si/en/install/ -LANGUAGE #60 <Read(wxT("Language"), wxLANGUAGE_DEFAULT); - if (wxLocale::IsAvailable(language)) { - wxString sPath; - if (wxConfigBase::Get()->Read(wxT("LocalizationRepositoryPath"), &sPath)) - m_locale.AddCatalogLookupPathPrefix(sPath); - wxVERIFY(m_locale.Init(language)); + // Initialize locale. + if (wxInitializeLocale(m_locale)) { wxVERIFY(m_locale.AddCatalog(wxT("wxExtend") wxT(wxExtendVersion))); wxVERIFY(m_locale.AddCatalog(wxT("Updater") wxT(wxUpdaterVersion))); wxVERIFY(m_locale.AddCatalog(wxT("libZRColaUI"))); diff --git a/ZRColaCompile/main.cpp b/ZRColaCompile/main.cpp index c8f4c75..7b5c692 100644 --- a/ZRColaCompile/main.cpp +++ b/ZRColaCompile/main.cpp @@ -30,25 +30,21 @@ int _tmain(int argc, _TCHAR *argv[]) { wxApp::CheckBuildOptions(WX_BUILD_OPTIONS_SIGNATURE, "program"); - // Inizialize wxWidgets. + // Initialize wxWidgets. wxInitializer initializer; if (!initializer) { _ftprintf(stderr, wxT("Failed to initialize the wxWidgets library, aborting.\n")); return -1; } - wxConfig config(wxT(ZRCOLA_CFG_APPLICATION), wxT(ZRCOLA_CFG_VENDOR)); + // Initialize configuration. + wxConfigBase *cfgPrev = wxConfigBase::Set(new wxConfig(wxT(ZRCOLA_CFG_APPLICATION), wxT(ZRCOLA_CFG_VENDOR))); + if (cfgPrev) wxDELETE(cfgPrev); - // Set desired locale. + // Initialize 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)); + if (wxInitializeLocale(locale)) wxVERIFY(locale.AddCatalog(wxT("ZRColaCompile"))); - } // Parse command line. static const wxCmdLineEntryDesc cmdLineDesc[] = diff --git a/lib/wxExtend b/lib/wxExtend index e50cae1..385528c 160000 --- a/lib/wxExtend +++ b/lib/wxExtend @@ -1 +1 @@ -Subproject commit e50cae1261b0eea7b3af8aa507b43e547d544af4 +Subproject commit 385528cf23b9a27d31502865e13652a253d7e228