Skip to content

Commit 11937d3

Browse files
committed
Fix translation fallback not working in the Project Manager
1 parent 0175be8 commit 11937d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/object/object.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ String Object::tr(const StringName &p_message, const StringName &p_context) cons
15351535
return p_message;
15361536
}
15371537

1538-
if (Engine::get_singleton()->is_editor_hint()) {
1538+
if (Engine::get_singleton()->is_editor_hint() || Engine::get_singleton()->is_project_manager_hint()) {
15391539
String tr_msg = TranslationServer::get_singleton()->extractable_translate(p_message, p_context);
15401540
if (!tr_msg.is_empty() && tr_msg != p_message) {
15411541
return tr_msg;
@@ -1556,7 +1556,7 @@ String Object::tr_n(const StringName &p_message, const StringName &p_message_plu
15561556
return p_message_plural;
15571557
}
15581558

1559-
if (Engine::get_singleton()->is_editor_hint()) {
1559+
if (Engine::get_singleton()->is_editor_hint() || Engine::get_singleton()->is_project_manager_hint()) {
15601560
String tr_msg = TranslationServer::get_singleton()->extractable_translate_plural(p_message, p_message_plural, p_n, p_context);
15611561
if (!tr_msg.is_empty() && tr_msg != p_message && tr_msg != p_message_plural) {
15621562
return tr_msg;

0 commit comments

Comments
 (0)