Translations: Use QCoreApplication::translate() instead of tr()

QCoreApplication::translate() takes a context parameter, tr() does not.
We want the first one.

Amends: 48affa1889

Change-Id: Ibca327a39097dfcdb81a30e561161d3275c61d1d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Alessandro Portale
2023-02-08 20:40:58 +01:00
parent 86a14c8b27
commit 98b1fcb7b3
8 changed files with 14 additions and 14 deletions

View File

@@ -14,8 +14,8 @@ class MesonActionsManager : public QObject
{
Q_OBJECT
Utils::ParameterAction buildTargetContextAction{
QCoreApplication::tr("::MesonProjectManager", "Build"),
QCoreApplication::tr("::MesonProjectManager", "Build \"%1\""),
QCoreApplication::translate("::MesonProjectManager", "Build"),
QCoreApplication::translate("::MesonProjectManager", "Build \"%1\""),
Utils::ParameterAction::AlwaysEnabled /*handled manually*/
};
QAction configureActionMenu;