1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-29 16:16:38 +00:00

Inspector localization improvements

This commit is contained in:
kobewi
2025-03-27 18:15:16 +01:00
parent 594d64ec24
commit b291156ece
3 changed files with 13 additions and 13 deletions

View File

@@ -59,11 +59,7 @@ EditorPropertyNameProcessor::Style EditorPropertyNameProcessor::get_tooltip_styl
}
bool EditorPropertyNameProcessor::is_localization_available() {
if (!EditorSettings::get_singleton()) {
return false;
}
const Vector<String> forbidden = String("en").split(",");
return !forbidden.has(EDITOR_GET("interface/editor/editor_language"));
return EditorSettings::get_singleton() && EDITOR_GET("interface/editor/editor_language") != "en";
}
String EditorPropertyNameProcessor::_capitalize_name(const String &p_name) const {