mirror of https://github.com/odrling/Aegisub
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.
This commit is contained in:
parent
9cd72c21c9
commit
0c7e784d71
|
@ -171,18 +171,17 @@ bool AegisubApp::OnInit() {
|
||||||
Hotkeys.Load();
|
Hotkeys.Load();
|
||||||
|
|
||||||
StartupLog(_T("Initialize final locale"));
|
StartupLog(_T("Initialize final locale"));
|
||||||
#ifdef __WINDOWS__
|
|
||||||
// Set locale
|
// Set locale
|
||||||
int lang = Options.AsInt(_T("Locale Code"));
|
int lang = Options.AsInt(_T("Locale Code"));
|
||||||
|
printf("lang: %d\n", lang);
|
||||||
|
|
||||||
if (lang == -1) {
|
if (lang == -1) {
|
||||||
lang = locale.PickLanguage();
|
lang = locale.PickLanguage();
|
||||||
Options.SetInt(_T("Locale Code"),lang);
|
Options.SetInt(_T("Locale Code"),lang);
|
||||||
Options.Save();
|
Options.Save();
|
||||||
}
|
}
|
||||||
locale.Init(lang);
|
locale.Init(lang);
|
||||||
#else
|
|
||||||
locale.Init(wxLANGUAGE_DEFAULT);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Load plugins
|
// Load plugins
|
||||||
plugins = new PluginManager();
|
plugins = new PluginManager();
|
||||||
|
|
Loading…
Reference in New Issue