mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Don't pseudolocalize empty strings
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user