You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
i18n: Make property paths and sections translatable
Co-Authored-By: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include "editor_file_system.h"
|
||||
#include "editor_log.h"
|
||||
#include "editor_node.h"
|
||||
#include "editor_property_name_processor.h"
|
||||
#include "editor_scale.h"
|
||||
#include "editor_settings.h"
|
||||
#include "scene/gui/margin_container.h"
|
||||
@@ -217,8 +218,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));
|
||||
|
||||
if (collapsed.has(item_name)) {
|
||||
section->set_collapsed(collapsed[item_name]);
|
||||
|
||||
Reference in New Issue
Block a user