Skip to content

Commit 261e7d3

Browse files
committed
Merge pull request godotengine#102649 from bruvzg/fb_loc
Use fallback locale from project settings instead of hardcoded "en" for TextServer.
2 parents 271c987 + e9fd760 commit 261e7d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/string/translation_server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ String TranslationServer::get_tool_locale() {
503503
// Look for best matching loaded translation.
504504
Ref<Translation> t = main_domain->get_translation_object(locale);
505505
if (t.is_null()) {
506-
return "en";
506+
return fallback;
507507
}
508508
return t->get_locale();
509509
}

0 commit comments

Comments
 (0)