mirror of https://github.com/odrling/Aegisub
Skip prompting the user for a language on first start if we have a translation for their OS UI language
This commit is contained in:
parent
47b8627ad3
commit
50d0744e9c
|
@ -71,6 +71,12 @@ void AegisubLocale::Init(wxString const& language) {
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString AegisubLocale::PickLanguage() {
|
wxString AegisubLocale::PickLanguage() {
|
||||||
|
if (!active_language) {
|
||||||
|
wxString os_ui_language = GetTranslations()->GetBestTranslation(AEGISUB_CATALOG);
|
||||||
|
if (!os_ui_language.empty())
|
||||||
|
return os_ui_language;
|
||||||
|
}
|
||||||
|
|
||||||
wxArrayString langs = GetTranslations()->GetAvailableTranslations(AEGISUB_CATALOG);
|
wxArrayString langs = GetTranslations()->GetAvailableTranslations(AEGISUB_CATALOG);
|
||||||
langs.insert(langs.begin(), "en_US");
|
langs.insert(langs.begin(), "en_US");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue