Fix translation with multiple sources for the same language.

Remove unnecessary locale length checks.
Add "C" -> "en" locale remap.
This commit is contained in:
bruvzg
2022-01-24 18:58:16 +02:00
parent fc09d783f4
commit 9456454109
4 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -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) {