Fix translation with multiple sources for the same language.
Remove unnecessary locale length checks. Add "C" -> "en" locale remap.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user