diff options
Diffstat (limited to 'core/string/translation_domain.cpp')
-rw-r--r-- | core/string/translation_domain.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/string/translation_domain.cpp b/core/string/translation_domain.cpp index 67f2e64f32..bb87e64f36 100644 --- a/core/string/translation_domain.cpp +++ b/core/string/translation_domain.cpp @@ -391,6 +391,10 @@ void TranslationDomain::set_pseudolocalization_suffix(const String &p_suffix) { } StringName TranslationDomain::pseudolocalize(const StringName &p_message) const { + if (p_message.is_empty()) { + return p_message; + } + String message = p_message; int length = message.length(); if (pseudolocalization.override_enabled) { |