summaryrefslogtreecommitdiff
path: root/core/string
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-19 16:44:27 +0100
committerGitHub <noreply@github.com>2022-01-19 16:44:27 +0100
commit249c60e9d1aacd07d87786db8059f30aed02bb68 (patch)
tree6d2ce6400a1aed8221a30200e9c1301cf9637c17 /core/string
parent8396755cb6742ba9cb203feb43784d516390e0e2 (diff)
parentde48d5101b57991614db8d2a8f5e6a98badee11e (diff)
Merge pull request #56951 from bruvzg/fix_locale
Diffstat (limited to 'core/string')
-rw-r--r--core/string/translation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/string/translation.cpp b/core/string/translation.cpp
index 5d7e583de1..674098b06c 100644
--- a/core/string/translation.cpp
+++ b/core/string/translation.cpp
@@ -544,7 +544,7 @@ Ref<Translation> TranslationServer::get_translation_object(const String &p_local
String l = t->get_locale();
int score = compare_locales(p_locale, l);
- if (score >= best_score) {
+ if (score > best_score) {
res = t;
best_score = score;
if (score == 10) {
@@ -617,7 +617,7 @@ StringName TranslationServer::_get_message_from_translations(const StringName &p
String l = t->get_locale();
int score = compare_locales(p_locale, l);
- if (score >= best_score) {
+ if (score > best_score) {
StringName r;
if (!plural) {
res = t->get_message(p_message, p_context);