From 7dd0a90beae40ed26b33b9c60c25bd8053877f9f Mon Sep 17 00:00:00 2001 From: tetektoza Date: Fri, 5 Sep 2025 01:52:16 +0200 Subject: [PATCH] Gui: Align to use translated strings in SelectionView --- src/Gui/Selection/SelectionView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gui/Selection/SelectionView.cpp b/src/Gui/Selection/SelectionView.cpp index eedf9fa925..56f0221a80 100644 --- a/src/Gui/Selection/SelectionView.cpp +++ b/src/Gui/Selection/SelectionView.cpp @@ -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()); }