summaryrefslogtreecommitdiffstats
path: root/editor/editor_sectioned_inspector.cpp
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-03-03 18:25:11 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-03-03 18:31:40 +0800
commitd6df2ffad8beabc12acccbafd3afa00d7e501d9c (patch)
tree8f2b9b9eec95c4f123f9b4b29519deda436f83ff /editor/editor_sectioned_inspector.cpp
parent33fc69dfb055175bfd16372473fa63405a3463f8 (diff)
downloadredot-engine-d6df2ffad8beabc12acccbafd3afa00d7e501d9c.tar.gz
i18n: Make property paths and categories translatable
Diffstat (limited to 'editor/editor_sectioned_inspector.cpp')
-rw-r--r--editor/editor_sectioned_inspector.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_sectioned_inspector.cpp b/editor/editor_sectioned_inspector.cpp
index 19374f826a..a44cf20771 100644
--- a/editor/editor_sectioned_inspector.cpp
+++ b/editor/editor_sectioned_inspector.cpp
@@ -30,6 +30,7 @@
#include "editor_sectioned_inspector.h"
+#include "editor/editor_property_name_processor.h"
#include "editor/editor_scale.h"
class SectionedInspectorFilter : public Object {
@@ -259,7 +260,8 @@ void SectionedInspector::update_category_list() {
if (!section_map.has(metasection)) {
TreeItem *ms = sections->create_item(parent);
section_map[metasection] = ms;
- ms->set_text(0, sectionarr[i].capitalize());
+ ms->set_text(0, EditorPropertyNameProcessor::get_singleton()->process_name(sectionarr[i]));
+ ms->set_tooltip(0, EditorPropertyNameProcessor::get_singleton()->make_tooltip_for_name(sectionarr[i]));
ms->set_metadata(0, metasection);
ms->set_selectable(0, false);
}