Merge pull request #98255 from timothyqiu/form-is-indeed-emptiness

Don't pseudolocalize empty strings
This commit is contained in:
Clay John 2024-10-17 21:27:30 -07:00 committed by GitHub
commit 4631a617e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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) {