Gui: Align to use translated strings in SelectionView

This commit is contained in:
tetektoza
2025-09-05 01:52:16 +02:00
parent 350eb6d3d4
commit c67d9c529c

View File

@@ -1051,7 +1051,7 @@ void SelectionMenu::createFlatMenu(ElementInfo &elementInfo, QMenu *parentMenu,
if (!sel.element.empty()) {
text += QStringLiteral(" (%1)").arg(QString::fromUtf8(sel.element.c_str()));
} else if (elementType == "Object" && !sel.subName.empty() && sel.subName.back() == '.') {
text += QString::fromLatin1(" (Whole Object)");
text += QStringLiteral(" (%1)").arg(tr("Whole Object"));
}
QAction *action = parentMenu->addAction(elementInfo.icon, text);
action->setData(idx);
@@ -1074,7 +1074,7 @@ void SelectionMenu::createGroupedMenu(ElementInfo &elementInfo, QMenu *parentMen
if (!sel.element.empty()) {
text = QString::fromUtf8(sel.element.c_str());
} else if (elementType == "Object" && !sel.subName.empty() && sel.subName.back() == '.') {
text = QString::fromLatin1("Whole Object");
text = tr("Whole Object");
} else {
text = QString::fromUtf8(sel.subName.c_str());
}