mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Use translated docs in PropertySelector
And do the dedent and stripping for both translated and
non-translated strings for consistency, and so that we
don't need to do it at the call site.
(cherry picked from commit a16031beb6
)
This commit is contained in:
parent
46df39d5e5
commit
81da3b8ba4
5 changed files with 16 additions and 15 deletions
|
@ -445,7 +445,7 @@ void VisualScriptPropertySelector::_item_selected() {
|
|||
if (E) {
|
||||
for (int i = 0; i < E->get().properties.size(); i++) {
|
||||
if (E->get().properties[i].name == name) {
|
||||
text = E->get().properties[i].description;
|
||||
text = DTR(E->get().properties[i].description);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -459,7 +459,7 @@ void VisualScriptPropertySelector::_item_selected() {
|
|||
if (C) {
|
||||
for (int i = 0; i < C->get().methods.size(); i++) {
|
||||
if (C->get().methods[i].name == name) {
|
||||
text = C->get().methods[i].description;
|
||||
text = DTR(C->get().methods[i].description);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -472,7 +472,7 @@ void VisualScriptPropertySelector::_item_selected() {
|
|||
if (T) {
|
||||
for (int i = 0; i < T->get().methods.size(); i++) {
|
||||
if (T->get().methods[i].name == functions[functions.size() - 1]) {
|
||||
text = T->get().methods[i].description;
|
||||
text = DTR(T->get().methods[i].description);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -491,7 +491,7 @@ void VisualScriptPropertySelector::_item_selected() {
|
|||
if (typecast_node.is_valid()) {
|
||||
Map<String, DocData::ClassDoc>::Element *F = dd->class_list.find(typecast_node->get_class_name());
|
||||
if (F) {
|
||||
text = F->get().description;
|
||||
text = DTR(F->get().description);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -501,7 +501,7 @@ void VisualScriptPropertySelector::_item_selected() {
|
|||
if (F) {
|
||||
for (int i = 0; i < F->get().constants.size(); i++) {
|
||||
if (F->get().constants[i].value.to_int() == int(builtin_node->get_func())) {
|
||||
text = F->get().constants[i].description;
|
||||
text = DTR(F->get().constants[i].description);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue