mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Inspector localization improvements
This commit is contained in:
parent
594d64ec24
commit
b291156ece
3 changed files with 13 additions and 13 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue