Use fallback locale from project settings instead of hardcoded "en" for TextServer.
This commit is contained in:
parent
36d90c73a8
commit
e9fd760357
1 changed files with 1 additions and 1 deletions
|
|
@ -503,7 +503,7 @@ String TranslationServer::get_tool_locale() {
|
|||
// Look for best matching loaded translation.
|
||||
Ref<Translation> t = main_domain->get_translation_object(locale);
|
||||
if (t.is_null()) {
|
||||
return "en";
|
||||
return fallback;
|
||||
}
|
||||
return t->get_locale();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue