From 0c7e784d71d3edf1fe452725e74f27be34fe85e9 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Fri, 2 Jan 2009 08:49:43 +0000 Subject: [PATCH] Activate locale support on !__WINDOWS__, using SetInstallPrefix in standard_paths.cpp allows the program to find the locale files now. Originally committed to SVN as r2613. --- aegisub/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/aegisub/main.cpp b/aegisub/main.cpp index 93ec26cd7..c5d580408 100644 --- a/aegisub/main.cpp +++ b/aegisub/main.cpp @@ -171,18 +171,17 @@ bool AegisubApp::OnInit() { Hotkeys.Load(); StartupLog(_T("Initialize final locale")); -#ifdef __WINDOWS__ + // Set locale int lang = Options.AsInt(_T("Locale Code")); +printf("lang: %d\n", lang); + if (lang == -1) { lang = locale.PickLanguage(); Options.SetInt(_T("Locale Code"),lang); Options.Save(); } locale.Init(lang); -#else - locale.Init(wxLANGUAGE_DEFAULT); -#endif // Load plugins plugins = new PluginManager();