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();
|
||||
|
||||
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();
|
||||
|
|
Loading…
Reference in New Issue