MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / process_name

Method process_name

editor/inspector/editor_property_name_processor.cpp:118–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118String EditorPropertyNameProcessor::process_name(const String &p_name, Style p_style, const String &p_property, const StringName &p_class) const {
119 switch (p_style) {
120 case STYLE_RAW: {
121 return p_name;
122 } break;
123
124 case STYLE_CAPITALIZED: {
125 return _capitalize_name(p_name);
126 } break;
127
128 case STYLE_LOCALIZED: {
129 const String capitalized = _capitalize_name(p_name);
130 if (TranslationServer::get_singleton()) {
131 return TranslationServer::get_singleton()->property_translate(capitalized, _get_context(p_name, p_property, p_class));
132 }
133 return capitalized;
134 } break;
135 }
136 ERR_FAIL_V_MSG(p_name, "Unexpected property name style.");
137}
138
139String EditorPropertyNameProcessor::translate_group_name(const String &p_name) const {
140 if (TranslationServer::get_singleton()) {

Callers 15

_get_monitor_baseMethod · 0.80
_create_monitor_itemMethod · 0.80
setup_property_editorMethod · 0.80
update_treeMethod · 0.80
_property_path_matchesFunction · 0.80
update_category_listMethod · 0.80
_load_defaultsMethod · 0.80
_update_shortcutsMethod · 0.80
_menu_option_confirmMethod · 0.80

Calls 1

property_translateMethod · 0.80

Tested by 5

update_treeMethod · 0.64
_property_path_matchesFunction · 0.64
update_category_listMethod · 0.64
_menu_option_confirmMethod · 0.64