diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-24 17:49:13 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-24 17:49:13 +0200 |
commit | 25ff1306d62b8eb0487608b2a9bed0644e2fce17 (patch) | |
tree | 0a47d62c691fd69072e3cdfd53841b0041ca7b59 /core/string/translation.cpp | |
parent | 2ac72b7402dda19435bdf441a05fb8196686ad65 (diff) | |
parent | f11e8d033d47acd42a886ef62849971c761edd62 (diff) | |
download | redot-engine-25ff1306d62b8eb0487608b2a9bed0644e2fce17.tar.gz |
Merge pull request #93554 from akien-mga/remove-editor-pseudolocalization
Remove editor pseudolocalization debug feature
Diffstat (limited to 'core/string/translation.cpp')
-rw-r--r-- | core/string/translation.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/core/string/translation.cpp b/core/string/translation.cpp index 344fe42fa0..432016284a 100644 --- a/core/string/translation.cpp +++ b/core/string/translation.cpp @@ -752,10 +752,10 @@ StringName TranslationServer::tool_translate(const StringName &p_message, const if (tool_translation.is_valid()) { StringName r = tool_translation->get_message(p_message, p_context); if (r) { - return editor_pseudolocalization ? tool_pseudolocalize(r) : r; + return r; } } - return editor_pseudolocalization ? tool_pseudolocalize(p_message) : p_message; + return p_message; } StringName TranslationServer::tool_translate_plural(const StringName &p_message, const StringName &p_message_plural, int p_n, const StringName &p_context) const { @@ -856,10 +856,6 @@ void TranslationServer::set_pseudolocalization_enabled(bool p_enabled) { } } -void TranslationServer::set_editor_pseudolocalization(bool p_enabled) { - editor_pseudolocalization = p_enabled; -} - void TranslationServer::reload_pseudolocalization() { pseudolocalization_accents_enabled = GLOBAL_GET("internationalization/pseudolocalization/replace_with_accents"); pseudolocalization_double_vowels_enabled = GLOBAL_GET("internationalization/pseudolocalization/double_vowels"); |