Răsfoiți Sursa

Use fallback locale from project settings instead of hardcoded "en" for TextServer.

Pāvels Nadtočajevs 5 luni în urmă
părinte
comite
e9fd760357
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      core/string/translation_server.cpp

+ 1 - 1
core/string/translation_server.cpp

@@ -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();
 	}