Skip to content

Commit

Permalink
Merge pull request godotengine#98255 from timothyqiu/form-is-indeed-e…
Browse files Browse the repository at this point in the history
…mptiness

Don't pseudolocalize empty strings
  • Loading branch information
clayjohn authored Oct 18, 2024
2 parents 14fc9a5 + f61fe27 commit 4631a61
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 4631a61

Please sign in to comment.