summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-01-24 18:58:16 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-01-24 18:58:16 +0200
commit945645410905e8b23228965e29c2be274cb12645 (patch)
tree4d64c089d94e15c2943b40ab8f41ef6bdb763357 /editor
parentfc09d783f4e8a6b8978c6971450f26e812268e67 (diff)
Fix translation with multiple sources for the same language.
Remove unnecessary locale length checks. Add "C" -> "en" locale remap.
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_settings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp
index 07ebd249b3..8146f48f91 100644
--- a/editor/editor_settings.cpp
+++ b/editor/editor_settings.cpp
@@ -377,7 +377,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
lang_hint += locale;
int score = TranslationServer::get_singleton()->compare_locales(host_lang, locale);
- if (score > best_score) {
+ if (score > 0 && score >= best_score) {
best = locale;
best_score = score;
if (score == 10) {