Godot Engine – Multi-platform 2D and 3D game engine
Fix property array sections not translated
kobewi40266fb226f6
diff --git a/editor/inspector/editor_inspector.cpp b/editor/inspector/editor_inspector.cppindex 0e2bfba6593..4f0d5ffb302 100644--- a/editor/inspector/editor_inspector.cpp+++ b/editor/inspector/editor_inspector.cpp@@ -4927,7 +4927,11 @@ void EditorInspector::update_tree() {editor_inspector_array = memnew(EditorInspectorArray(all_read_only));int page = per_array_page.has(array_element_prefix) ? per_array_page[array_element_prefix] : 0;- editor_inspector_array->setup_with_count_property(object, p.hint_string, class_name_components[0], p.name, array_element_prefix, page, c, foldable, movable, is_const, numbered, page_size, add_button_text, swap_method);+ String array_label = class_name_components[0];+ if (property_name_style == EditorPropertyNameProcessor::STYLE_LOCALIZED) {+ array_label = EditorPropertyNameProcessor::get_singleton()->translate_group_name(array_label);+ }+ editor_inspector_array->setup_with_count_property(object, p.hint_string, array_label, p.name, array_element_prefix, page, c, foldable, movable, is_const, numbered, page_size, add_button_text, swap_method);editor_inspector_array->connect("page_change_request", callable_mp(this, &EditorInspector::_page_change_request).bind(array_element_prefix));}}