Skip to content

Commit f61fe27

Browse files
committed
Don't pseudolocalize empty strings
1 parent 04692d8 commit f61fe27

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/string/translation_domain.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,10 @@ void TranslationDomain::set_pseudolocalization_suffix(const String &p_suffix) {
389389
}
390390

391391
StringName TranslationDomain::pseudolocalize(const StringName &p_message) const {
392+
if (p_message.is_empty()) {
393+
return p_message;
394+
}
395+
392396
String message = p_message;
393397
int length = message.length();
394398
if (pseudolocalization.override_enabled) {

0 commit comments

Comments
 (0)