From d51eb796b9db7b3e645a3d2935c7e010557c5007 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Wed, 9 Feb 2022 00:04:58 +0800 Subject: [PATCH] i18n: copywriting for show in directory feature --- app/actionmanager.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/actionmanager.cpp b/app/actionmanager.cpp index 402c8c7..cfbfd3e 100644 --- a/app/actionmanager.cpp +++ b/app/actionmanager.cpp @@ -87,7 +87,16 @@ void ActionManager::retranslateUi(MainWindow *mainWindow) actionToggleProtectMode->setText(QCoreApplication::translate("MainWindow", "Protected mode", nullptr)); actionSettings->setText(QCoreApplication::translate("MainWindow", "Configure...", nullptr)); actionHelp->setText(QCoreApplication::translate("MainWindow", "Help", nullptr)); - actionLocateInFileManager->setText("Open Containing Folder"); // TODO: what should it called? +#ifdef Q_OS_WIN + actionLocateInFileManager->setText( + QCoreApplication::translate( + "MainWindow", "Show in File Explorer", + "File Explorer is the name of explorer.exe under Windows" + ) + ); +#else + actionLocateInFileManager->setText(QCoreApplication::translate("MainWindow", "Show in directory", nullptr)); +#endif // Q_OS_WIN actionProperties->setText(QCoreApplication::translate("MainWindow", "Properties", nullptr)); actionQuitApp->setText(QCoreApplication::translate("MainWindow", "Quit", nullptr)); }