1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Fix locale always selecting translation instead of "en", when no match found.

This commit is contained in:
bruvzg
2022-01-19 16:46:48 +02:00
parent 82efb1d262
commit de48d5101b
3 changed files with 4 additions and 4 deletions

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 > best_score) {
best = locale;
best_score = score;
if (score == 10) {