소스 검색

Merge pull request #102649 from bruvzg/fb_loc

Use fallback locale from project settings instead of hardcoded "en" for TextServer.
Rémi Verschelde 5 달 전
부모
커밋
261e7d32d3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();
 	}