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.
This commit is contained in:
Rémi Verschelde 2020-05-28 12:02:12 +02:00
parent 1a53ee66c1
commit a16031beb6
5 changed files with 16 additions and 15 deletions

View file

@ -357,7 +357,7 @@ void PropertySelector::_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);
}
}
}
@ -372,7 +372,7 @@ void PropertySelector::_item_selected() {
if (E) {
for (int i = 0; i < E->get().methods.size(); i++) {
if (E->get().methods[i].name == name) {
text = E->get().methods[i].description;
text = DTR(E->get().methods[i].description);
}
}
}