Don't pseudolocalize empty strings

This commit is contained in:
Haoyu Qiu 2024-10-17 10:30:17 +08:00
parent 04692d83cb
commit f61fe2799c

View file

@ -389,6 +389,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) {