Add support for non-ISO locale identifiers via renames map

Windows apparently uses "no" for Norwegian Bokmål, even though its
ISO 639-1 language code is "nb"... Closes #12479.

Also did some non-intrusive cleanup while at it.
This commit is contained in:
Rémi Verschelde
2017-10-29 22:26:09 +01:00
parent 619e4eb23d
commit 981ef0be59
3 changed files with 75 additions and 65 deletions

View File

@@ -544,6 +544,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
{
String lang_hint = "en";
String host_lang = OS::get_singleton()->get_locale();
host_lang = TranslationServer::standardize_locale(host_lang);
String best;