Преглед на файлове

Merge pull request #106893 from timothyqiu/help-category

Fix category names in help search dialog not translated
Thaddeus Crews преди 3 месеца
родител
ревизия
14e870bae3
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      editor/editor_help_search.cpp

+ 1 - 0
editor/editor_help_search.cpp

@@ -541,6 +541,7 @@ TreeItem *EditorHelpSearch::Runner::_create_category_item(TreeItem *p_parent, co
 	TreeItem *item = nullptr;
 	if (_find_or_create_item(p_parent, item_meta, item)) {
 		item->set_icon(0, ui_service->get_editor_theme_icon(p_icon));
+		item->set_auto_translate_mode(0, AUTO_TRANSLATE_MODE_ALWAYS);
 		item->set_text(0, p_text);
 		item->set_metadata(0, item_meta);
 	}