summaryrefslogtreecommitdiffstats
path: root/application/MainWindow.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-11-02 01:17:19 +0100
committerPetr Mrázek <peterix@gmail.com>2016-11-02 01:17:19 +0100
commit3a4304d89dc59a5f4045c1f3f2b504ba188adb33 (patch)
treec7d5f486c1781bf91f151ff821cd1b996d6013a4 /application/MainWindow.cpp
parenta9c0d812a67c7d044a1148523198cc37ad24db8c (diff)
downloadMultiMC-3a4304d89dc59a5f4045c1f3f2b504ba188adb33.tar
MultiMC-3a4304d89dc59a5f4045c1f3f2b504ba188adb33.tar.gz
MultiMC-3a4304d89dc59a5f4045c1f3f2b504ba188adb33.tar.lz
MultiMC-3a4304d89dc59a5f4045c1f3f2b504ba188adb33.tar.xz
MultiMC-3a4304d89dc59a5f4045c1f3f2b504ba188adb33.zip
NOISSUE simplify retranslation code of MainWindow
Diffstat (limited to 'application/MainWindow.cpp')
-rw-r--r--application/MainWindow.cpp139
1 files changed, 58 insertions, 81 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp
index 4736b33e..6d88a14e 100644
--- a/application/MainWindow.cpp
+++ b/application/MainWindow.cpp
@@ -297,90 +297,67 @@ public:
void retranslateUi(QMainWindow *MainWindow)
{
MainWindow->setWindowTitle("MultiMC 5");
- actionAddInstance->setText(QApplication::translate("MainWindow", "Add Instance", 0));
- actionAddInstance->setToolTip(QApplication::translate("MainWindow", "Add a new instance.", 0));
- actionAddInstance->setStatusTip(QApplication::translate("MainWindow", "Add a new instance.", 0));
- actionViewInstanceFolder->setText(QApplication::translate("MainWindow", "View Instance Folder", 0));
- actionViewInstanceFolder->setToolTip(QApplication::translate("MainWindow", "Open the instance folder in a file browser.", 0));
- actionViewInstanceFolder->setStatusTip(QApplication::translate("MainWindow", "Open the instance folder in a file browser.", 0));
- actionRefresh->setText(QApplication::translate("MainWindow", "Refresh", 0));
- actionRefresh->setToolTip(QApplication::translate("MainWindow", "Reload the instance list.", 0));
- actionRefresh->setStatusTip(QApplication::translate("MainWindow", "Reload the instance list.", 0));
- actionViewCentralModsFolder->setText(QApplication::translate("MainWindow", "View Central Mods Folder", 0));
- actionViewCentralModsFolder->setToolTip(QApplication::translate("MainWindow", "Open the central mods folder in a file browser.", 0));
- actionViewCentralModsFolder->setStatusTip(QApplication::translate("MainWindow", "Open the central mods folder in a file browser.", 0));
+ actionAddInstance->setText(tr("Add Instance"));
+ actionAddInstance->setToolTip(tr("Add a new instance."));
+ actionViewInstanceFolder->setText(tr("View Instance Folder"));
+ actionViewInstanceFolder->setToolTip(tr("Open the instance folder in a file browser."));
+ actionRefresh->setText(tr("Refresh"));
+ actionRefresh->setToolTip(tr("Reload the instance list."));
+ actionViewCentralModsFolder->setText(tr("View Central Mods Folder"));
+ actionViewCentralModsFolder->setToolTip(tr("Open the central mods folder in a file browser."));
if(BuildConfig.UPDATER_ENABLED)
{
- actionCheckUpdate->setText(QApplication::translate("MainWindow", "Check for Updates", 0));
- actionCheckUpdate->setToolTip(QApplication::translate("MainWindow", "Check for new updates for MultiMC", 0));
- actionCheckUpdate->setStatusTip(QApplication::translate("MainWindow", "Check for new updates for MultiMC", 0));
+ actionCheckUpdate->setText(tr("Check for Updates"));
+ actionCheckUpdate->setToolTip(tr("Check for new updates for MultiMC."));
}
- actionSettings->setText(QApplication::translate("MainWindow", "Settings", 0));
- actionSettings->setToolTip(QApplication::translate("MainWindow", "Change settings.", 0));
- actionSettings->setStatusTip(QApplication::translate("MainWindow", "Change settings.", 0));
- actionReportBug->setText(QApplication::translate("MainWindow", "Report a Bug", 0));
- actionReportBug->setToolTip(QApplication::translate("MainWindow", "Open the bug tracker to report a bug with MultiMC.", 0));
- actionReportBug->setStatusTip(QApplication::translate("MainWindow", "Open the bug tracker to report a bug with MultiMC.", 0));
- actionPatreon->setText(QApplication::translate("MainWindow", "Support us on Patreon!", 0));
- actionPatreon->setToolTip(QApplication::translate("MainWindow", "Open the MultiMC Patreon page.", 0));
- actionPatreon->setStatusTip(QApplication::translate("MainWindow", "Open the MultiMC Patreon page.", 0));
- actionMoreNews->setText(QApplication::translate("MainWindow", "More News", 0));
- actionMoreNews->setIconText(QApplication::translate("MainWindow", "More news...", 0));
- actionMoreNews->setToolTip(QApplication::translate("MainWindow", "Open the MultiMC development blog to read more news about MultiMC.", 0));
- actionMoreNews->setStatusTip(QApplication::translate("MainWindow", "Open the MultiMC development blog to read more news about MultiMC.", 0));
- actionAbout->setText(QApplication::translate("MainWindow", "About MultiMC", 0));
- actionAbout->setToolTip(QApplication::translate("MainWindow", "View information about MultiMC.", 0));
- actionAbout->setStatusTip(QApplication::translate("MainWindow", "About MultiMC", 0));
- actionLaunchInstance->setText(QApplication::translate("MainWindow", "Play", 0));
- actionLaunchInstance->setToolTip(QApplication::translate("MainWindow", "Launch the selected instance.", 0));
- actionLaunchInstance->setStatusTip(QApplication::translate("MainWindow", "Launch the selected instance.", 0));
- actionRenameInstance->setText(QApplication::translate("MainWindow", "Instance Name", 0));
- actionRenameInstance->setToolTip(QApplication::translate("MainWindow", "Rename the selected instance.", 0));
- actionRenameInstance->setStatusTip(QApplication::translate("MainWindow", "Rename the selected instance.", 0));
- actionChangeInstGroup->setText(QApplication::translate("MainWindow", "Change Group", 0));
- actionChangeInstGroup->setToolTip(QApplication::translate("MainWindow", "Change the selected instance's group.", 0));
- actionChangeInstGroup->setStatusTip(QApplication::translate("MainWindow", "Change the selected instance's group.", 0));
- actionChangeInstIcon->setText(QApplication::translate("MainWindow", "Change Icon", 0));
- actionChangeInstIcon->setToolTip(QApplication::translate("MainWindow", "Change the selected instance's icon.", 0));
- actionChangeInstIcon->setStatusTip(QApplication::translate("MainWindow", "Change the selected instance's icon.", 0));
- actionEditInstNotes->setText(QApplication::translate("MainWindow", "Edit Notes", 0));
- actionEditInstNotes->setToolTip(QApplication::translate("MainWindow", "Edit the notes for the selected instance.", 0));
- actionEditInstNotes->setStatusTip(QApplication::translate("MainWindow", "Edit the notes for the selected instance.", 0));
- actionEditInstance->setText(QApplication::translate("MainWindow", "Edit Instance", 0));
- actionEditInstance->setIconText(QApplication::translate("MainWindow", "Edit Instance", 0));
- actionEditInstance->setToolTip(QApplication::translate("MainWindow", "Change the instance settings, mods and versions.", 0));
- actionEditInstance->setStatusTip(QApplication::translate("MainWindow", "Change the instance settings, mods and versions.", 0));
- actionViewSelectedInstFolder->setText(QApplication::translate("MainWindow", "Instance Folder", 0));
- actionViewSelectedInstFolder->setToolTip(QApplication::translate("MainWindow", "Open the selected instance's root folder in a file browser.", 0));
- actionViewSelectedInstFolder->setStatusTip(QApplication::translate("MainWindow", "Open the selected instance's root folder in a file browser.", 0));
- actionDeleteInstance->setText(QApplication::translate("MainWindow", "Delete", 0));
- actionDeleteInstance->setToolTip(QApplication::translate("MainWindow", "Delete the selected instance.", 0));
- actionDeleteInstance->setStatusTip(QApplication::translate("MainWindow", "Delete the selected instance.", 0));
- actionConfig_Folder->setText(QApplication::translate("MainWindow", "Config Folder", 0));
- actionConfig_Folder->setToolTip(QApplication::translate("MainWindow", "Open the instance's config folder", 0));
- actionCAT->setText(QApplication::translate("MainWindow", "Meow", 0));
- actionCAT->setToolTip(QApplication::translate("MainWindow", "<html><head/><body><p align=\"center\">It's a fluffy kitty :3</p></body></html>", 0));
- actionREDDIT->setText(QApplication::translate("MainWindow", "Reddit", 0));
- actionREDDIT->setToolTip(QApplication::translate("MainWindow", "Open MultiMC subreddit", 0));
- actionDISCORD->setText(QApplication::translate("MainWindow", "Discord", 0));
- actionDISCORD->setToolTip(QApplication::translate("MainWindow", "Open MultiMC discord voice chat", 0));
- actionCopyInstance->setText(QApplication::translate("MainWindow", "Copy Instance", 0));
- actionCopyInstance->setToolTip(QApplication::translate("MainWindow", "Copy the selected instance.", 0));
- actionCopyInstance->setStatusTip(QApplication::translate("MainWindow", "Add a new instance.", 0));
- actionManageAccounts->setText(QApplication::translate("MainWindow", "Manage Accounts", 0));
- actionManageAccounts->setToolTip(QApplication::translate("MainWindow", "Manage your Mojang or Minecraft accounts.", 0));
- actionLaunchInstanceOffline->setText(QApplication::translate("MainWindow", "Play Offline", 0));
- actionLaunchInstanceOffline->setToolTip(QApplication::translate("MainWindow", "Launch the selected instance in offline mode.", 0));
- actionLaunchInstanceOffline->setStatusTip(QApplication::translate("MainWindow", "Launch the selected instance.", 0));
- actionScreenshots->setText(QApplication::translate("MainWindow", "Manage Screenshots", 0));
- actionScreenshots->setToolTip(
- QApplication::translate("MainWindow", "<html><head/><body><p>View and upload screenshots for this instance</p></body></html>", 0));
- actionInstanceSettings->setText(QApplication::translate("MainWindow", "Instance Settings", 0));
- actionInstanceSettings->setToolTip(QApplication::translate("MainWindow", "Change the settings specific to the instance", 0));
- actionExportInstance->setText(QApplication::translate("MainWindow", "Export Instance", 0));
- mainToolBar->setWindowTitle(QApplication::translate("MainWindow", "Main Toolbar", 0));
- instanceToolBar->setWindowTitle(QApplication::translate("MainWindow", "Instance Toolbar", 0));
- newsToolBar->setWindowTitle(QApplication::translate("MainWindow", "News Toolbar", 0));
+ actionSettings->setText(tr("Settings"));
+ actionSettings->setToolTip(tr("Change settings."));
+ actionReportBug->setText(tr("Report a Bug"));
+ actionReportBug->setToolTip(tr("Open the bug tracker to report a bug with MultiMC."));
+ actionPatreon->setText(tr("Support us on Patreon!"));
+ actionPatreon->setToolTip(tr("Open the MultiMC Patreon page."));
+ actionMoreNews->setText(tr("More news..."));
+ actionMoreNews->setToolTip(tr("Open the MultiMC development blog to read more news about MultiMC."));
+ actionAbout->setText(tr("About MultiMC"));
+ actionAbout->setToolTip(tr("View information about MultiMC."));
+ actionLaunchInstance->setText(tr("Play"));
+ actionLaunchInstance->setToolTip(tr("Launch the selected instance."));
+ actionRenameInstance->setText(tr("Instance Name"));
+ actionRenameInstance->setToolTip(tr("Rename the selected instance."));
+ actionChangeInstGroup->setText(tr("Change Group"));
+ actionChangeInstGroup->setToolTip(tr("Change the selected instance's group."));
+ actionChangeInstIcon->setText(tr("Change Icon"));
+ actionChangeInstIcon->setToolTip(tr("Change the selected instance's icon."));
+ actionEditInstNotes->setText(tr("Edit Notes"));
+ actionEditInstNotes->setToolTip(tr("Edit the notes for the selected instance."));
+ actionEditInstance->setText(tr("Edit Instance"));
+ actionEditInstance->setToolTip(tr("Change the instance settings, mods and versions."));
+ actionViewSelectedInstFolder->setText(tr("Instance Folder"));
+ actionViewSelectedInstFolder->setToolTip(tr("Open the selected instance's root folder in a file browser."));
+ actionDeleteInstance->setText(tr("Delete"));
+ actionDeleteInstance->setToolTip(tr("Delete the selected instance."));
+ actionConfig_Folder->setText(tr("Config Folder"));
+ actionConfig_Folder->setToolTip(tr("Open the instance's config folder."));
+ actionCAT->setText(tr("Meow"));
+ actionCAT->setToolTip(tr("It's a fluffy kitty :3"));
+ actionREDDIT->setText(tr("Reddit"));
+ actionREDDIT->setToolTip(tr("Open MultiMC subreddit."));
+ actionDISCORD->setText(tr("Discord"));
+ actionDISCORD->setToolTip(tr("Open MultiMC discord voice chat."));
+ actionCopyInstance->setText(tr("Copy Instance"));
+ actionCopyInstance->setToolTip(tr("Copy the selected instance."));
+ actionManageAccounts->setText(tr("Manage Accounts"));
+ actionManageAccounts->setToolTip(tr("Manage your Mojang or Minecraft accounts."));
+ actionLaunchInstanceOffline->setText(tr("Play Offline"));
+ actionLaunchInstanceOffline->setToolTip(tr("Launch the selected instance in offline mode."));
+ actionScreenshots->setText(tr("Manage Screenshots"));
+ actionScreenshots->setToolTip(tr("View and upload screenshots for this instance."));
+ actionInstanceSettings->setText(tr("Instance Settings"));
+ actionInstanceSettings->setToolTip(tr("Change the settings specific to the instance."));
+ actionExportInstance->setText(tr("Export Instance"));
+ mainToolBar->setWindowTitle(tr("Main Toolbar"));
+ instanceToolBar->setWindowTitle(tr("Instance Toolbar"));
+ newsToolBar->setWindowTitle(tr("News Toolbar"));
} // retranslateUi
};