diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-10-29 22:26:09 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2017-10-30 00:02:55 +0100 |
commit | 981ef0be59a0702b3d7f59d33084293f282ced71 (patch) | |
tree | 7c132f38682b71ed332f9f9614dda9d4f91bb43d /editor/editor_settings.cpp | |
parent | 619e4eb23df037d152bf7776c5447d46293aadff (diff) |
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.
Diffstat (limited to 'editor/editor_settings.cpp')
-rw-r--r-- | editor/editor_settings.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index 799a8a2eb8..78cc215421 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -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; |