mirror of
https://github.com/godotengine/godot.git
synced 2025-10-29 20:51:14 +00:00
i18n: Make property paths and categories translatable
This commit is contained in:
parent
33fc69dfb0
commit
d6df2ffad8
8 changed files with 292 additions and 85 deletions
|
|
@ -37,6 +37,7 @@
|
|||
#include "editor/editor_file_system.h"
|
||||
#include "editor/editor_log.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_property_name_processor.h"
|
||||
#include "editor/editor_scale.h"
|
||||
#include "editor/editor_settings.h"
|
||||
#include "scene/gui/margin_container.h"
|
||||
|
|
@ -420,8 +421,9 @@ void EditorSettingsDialog::_update_shortcuts() {
|
|||
} else {
|
||||
section = shortcuts->create_item(root);
|
||||
|
||||
String item_name = section_name.capitalize();
|
||||
String item_name = EditorPropertyNameProcessor::get_singleton()->process_name(section_name);
|
||||
section->set_text(0, item_name);
|
||||
section->set_tooltip(0, EditorPropertyNameProcessor::get_singleton()->make_tooltip_for_name(section_name));
|
||||
section->set_selectable(0, false);
|
||||
section->set_selectable(1, false);
|
||||
section->set_custom_bg_color(0, shortcuts->get_theme_color(SNAME("prop_subsection"), SNAME("Editor")));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue