mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Remove editor pseudolocalization debug feature
We've seen multiple users enable it by mistake and get utterly confused, reporting as a bug that the interface text is garbled. On the other hand we haven't really seen much use of the feature by editor UI developers, so we can likely simply remove it. If there's a need eventually, we can re-add it as a command line option (which is also better than an editor setting as one would typically want to toggle it during development).
This commit is contained in:
@@ -752,10 +752,10 @@ StringName TranslationServer::tool_translate(const StringName &p_message, const
|
||||
if (tool_translation.is_valid()) {
|
||||
StringName r = tool_translation->get_message(p_message, p_context);
|
||||
if (r) {
|
||||
return editor_pseudolocalization ? tool_pseudolocalize(r) : r;
|
||||
return r;
|
||||
}
|
||||
}
|
||||
return editor_pseudolocalization ? tool_pseudolocalize(p_message) : p_message;
|
||||
return p_message;
|
||||
}
|
||||
|
||||
StringName TranslationServer::tool_translate_plural(const StringName &p_message, const StringName &p_message_plural, int p_n, const StringName &p_context) const {
|
||||
@@ -856,10 +856,6 @@ void TranslationServer::set_pseudolocalization_enabled(bool p_enabled) {
|
||||
}
|
||||
}
|
||||
|
||||
void TranslationServer::set_editor_pseudolocalization(bool p_enabled) {
|
||||
editor_pseudolocalization = p_enabled;
|
||||
}
|
||||
|
||||
void TranslationServer::reload_pseudolocalization() {
|
||||
pseudolocalization_accents_enabled = GLOBAL_GET("internationalization/pseudolocalization/replace_with_accents");
|
||||
pseudolocalization_double_vowels_enabled = GLOBAL_GET("internationalization/pseudolocalization/double_vowels");
|
||||
|
||||
Reference in New Issue
Block a user