Skip to content

Commit

Permalink
Don't pseudolocalize empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyqiu committed Oct 17, 2024
1 parent 04692d8 commit f61fe27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/string/translation_domain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f61fe27

Please sign in to comment.