diff --git a/launcher/InstanceImportTask.cpp b/launcher/InstanceImportTask.cpp index 8cd68d7b47..2689880d46 100644 --- a/launcher/InstanceImportTask.cpp +++ b/launcher/InstanceImportTask.cpp @@ -218,7 +218,7 @@ void InstanceImportTask::processFlame() } catch (const JSONValidationError &e) { - emitFailed(tr("Could not understand pack manifest:\n") + e.cause()); + emitFailed(tr("Could not parse the pack manifest:\n") + e.cause()); return; } if(!pack.overrides.isEmpty()) diff --git a/launcher/JavaCommon.cpp b/launcher/JavaCommon.cpp index 6fa5851b1f..a6bb563387 100644 --- a/launcher/JavaCommon.cpp +++ b/launcher/JavaCommon.cpp @@ -8,9 +8,9 @@ bool JavaCommon::checkJVMArgs(QString jvmargs, QWidget *parent) || jvmargs.contains("-XX-MaxHeapSize") || jvmargs.contains("-XX:InitialHeapSize")) { auto warnStr = QObject::tr( - "You tried to manually set a JVM memory option (using \"-XX:PermSize\", \"-XX-MaxHeapSize\", \"-XX:InitialHeapSize\", \"-Xmx\" or \"-Xms\").\n" + "An attempt was made to manually set a JVM memory option (using \"-XX:PermSize\", \"-XX-MaxHeapSize\", \"-XX:InitialHeapSize\", \"-Xmx\" or \"-Xms\").\n" "There are dedicated boxes for these in the settings (Java tab, in the Memory group at the top).\n" - "This message will be displayed until you remove them from the JVM arguments."); + "This message will be displayed until these arguments are removed from the JVM arguments."); CustomMessageBox::selectable( parent, QObject::tr("JVM arguments warning"), warnStr, diff --git a/launcher/LaunchController.cpp b/launcher/LaunchController.cpp index 7750be1a2a..64b5ae925e 100644 --- a/launcher/LaunchController.cpp +++ b/launcher/LaunchController.cpp @@ -55,9 +55,8 @@ void LaunchController::decideAccount() auto reply = CustomMessageBox::selectable( m_parentWidget, tr("No Accounts"), - tr("In order to play Minecraft, you must have at least one Mojang or Minecraft " - "account logged in." - "Would you like to open the account manager to add an account now?"), + tr("In order to play Minecraft, logging in to at least one Mojang or Microsoft account is required. " + "Open the account manager to add an account?"), QMessageBox::Information, QMessageBox::Yes | QMessageBox::No )->exec(); @@ -74,7 +73,7 @@ void LaunchController::decideAccount() { // If no default account is set, ask the user which one to use. ProfileSelectDialog selectDialog( - tr("Which account would you like to use?"), + tr("Select the account that should be used"), ProfileSelectDialog::GlobalDefaultCheckbox, m_parentWidget ); @@ -107,7 +106,7 @@ void LaunchController::login() { // we loop until the user succeeds in logging in or gives up bool tryagain = true; // the failure. the default failure. - const QString needLoginAgain = tr("Your account is currently not logged in. Please enter your password to log in again.

This could be caused by a password change."); + const QString needLoginAgain = tr("Not currently logged in. Please enter the password to log in again.

This could be caused by a password change."); QString failReason = needLoginAgain; while (tryagain) @@ -129,7 +128,7 @@ void LaunchController::login() { QString name = QInputDialog::getText( m_parentWidget, tr("Player name"), - tr("Choose your offline mode player name."), + tr("Choose an offline mode player name."), QLineEdit::Normal, m_session->player_name, &ok @@ -169,7 +168,7 @@ void LaunchController::login() { // play demo ? QMessageBox box(m_parentWidget); box.setWindowTitle(tr("Play demo?")); - box.setText(tr("This account does not own Minecraft.\nYou need to purchase the game first to play it.\n\nDo you want to play the demo?")); + box.setText(tr("This account does not own Minecraft.\nPurchasing the game is required to play the full version.\n\nDo you want to play the demo?")); box.setIcon(QMessageBox::Warning); auto demoButton = box.addButton(tr("Play Demo"), QMessageBox::ButtonRole::YesRole); auto cancelButton = box.addButton(tr("Cancel"), QMessageBox::ButtonRole::NoRole); @@ -327,8 +326,8 @@ void LaunchController::readyForLaunch() connect(profilerInstance, &BaseProfiler::readyToLaunch, [this](const QString & message) { QMessageBox msg; - msg.setText(tr("The game launch is delayed until you press the " - "button. This is the right time to setup the profiler, as the " + msg.setText(tr("The game launch is delayed until the button is pressed. " + "This is the right time to setup the profiler, as the " "profiler server is running now.\n\n%1").arg(message)); msg.setWindowTitle(tr("Waiting.")); msg.setIcon(QMessageBox::Information); @@ -386,8 +385,8 @@ bool LaunchController::abort() } auto response = CustomMessageBox::selectable( m_parentWidget, tr("Kill Minecraft?"), - tr("This can cause the instance to get corrupted and should only be used if Minecraft " - "is frozen for some reason"), + tr("This can cause the instance to get corrupted and should only be done if Minecraft " + "is not responding"), QMessageBox::Question, QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes)->exec(); if (response == QMessageBox::Yes) { diff --git a/launcher/UpdateController.cpp b/launcher/UpdateController.cpp index f9b7d34995..0a9eca6ef6 100644 --- a/launcher/UpdateController.cpp +++ b/launcher/UpdateController.cpp @@ -412,7 +412,7 @@ void UpdateController::fail() if(!rollbackOK) { msg = QObject::tr("The rollback failed too.\n" - "You will have to repair %1 manually.\n" + "%1 will have to be repaired manually.\n" "Please let us know why and how this happened.").arg(BuildConfig.LAUNCHER_NAME); QMessageBox::critical(m_parent, rollFailTitle, msg); qApp->quit(); diff --git a/launcher/minecraft/auth/steps/XboxAuthorizationStep.cpp b/launcher/minecraft/auth/steps/XboxAuthorizationStep.cpp index 07eeb7dcb0..8f12efe39d 100644 --- a/launcher/minecraft/auth/steps/XboxAuthorizationStep.cpp +++ b/launcher/minecraft/auth/steps/XboxAuthorizationStep.cpp @@ -124,8 +124,8 @@ bool XboxAuthorizationStep::processSTSError( case 2148916233:{ emit finished( AccountTaskState::STATE_FAILED_SOFT, - tr("This Microsoft account does not have an XBox Live profile. Buy the game on %1 first.") - .arg("minecraft.net") + tr("This Microsoft account does not have an Xbox Live profile. Purchasing the game on %1 is required.") + .arg(tr("minecraft.net")) ); return true; } @@ -133,22 +133,22 @@ bool XboxAuthorizationStep::processSTSError( // NOTE: this is the Grulovia error emit finished( AccountTaskState::STATE_FAILED_SOFT, - tr("XBox Live is not available in your country. You've been blocked.") + tr("Xbox Live is not available in this country. The provided account has been blocked by Microsoft.") ); return true; } case 2148916238: { emit finished( AccountTaskState::STATE_FAILED_SOFT, - tr("This Microsoft account is underaged and is not linked to a family.\n\nPlease set up your account according to %1.") - .arg("help.minecraft.net") + tr("This is not an adult Microsoft account and it is not linked to a family.\n\nPlease set up the account according to %1.") + .arg(tr("help.minecraft.net")) ); return true; } default: { emit finished( AccountTaskState::STATE_FAILED_SOFT, - tr("XSTS authentication ended with unrecognized error(s):\n\n%1").arg(errorCode) + tr("XSTS authentication ended with an unrecognized error code:\n\n%1").arg(errorCode) ); return true; } diff --git a/launcher/minecraft/auth/steps/XboxUserStep.cpp b/launcher/minecraft/auth/steps/XboxUserStep.cpp index a38a28e49b..550dc19c57 100644 --- a/launcher/minecraft/auth/steps/XboxUserStep.cpp +++ b/launcher/minecraft/auth/steps/XboxUserStep.cpp @@ -53,14 +53,14 @@ void XboxUserStep::onRequestDone( if (error != QNetworkReply::NoError) { qWarning() << "Reply error:" << error; - emit finished(AccountTaskState::STATE_FAILED_SOFT, tr("XBox user authentication failed.")); + emit finished(AccountTaskState::STATE_FAILED_SOFT, tr("Xbox user authentication failed.")); return; } Katabasis::Token temp; if(!Parsers::parseXTokenResponse(data, temp, "UToken")) { qWarning() << "Could not parse user authentication response..."; - emit finished(AccountTaskState::STATE_FAILED_SOFT, tr("XBox user authentication response could not be understood.")); + emit finished(AccountTaskState::STATE_FAILED_SOFT, tr("Unexpected Xbox user authentication response.")); return; } m_data->userToken = temp; diff --git a/launcher/minecraft/launch/DirectJavaLaunch.cpp b/launcher/minecraft/launch/DirectJavaLaunch.cpp index 2bcff66436..742170fa05 100644 --- a/launcher/minecraft/launch/DirectJavaLaunch.cpp +++ b/launcher/minecraft/launch/DirectJavaLaunch.cpp @@ -88,7 +88,7 @@ void DirectJavaLaunch::on_state(LoggedProcess::State state) case LoggedProcess::FailedToStart: { //: Error message displayed if instance can't start - const char *reason = QT_TR_NOOP("Could not launch minecraft!"); + const char *reason = QT_TR_NOOP("Could not launch Minecraft!"); emit logLine(reason, MessageLevel::Fatal); emitFailed(tr(reason)); return; diff --git a/launcher/minecraft/launch/VerifyJavaInstall.cpp b/launcher/minecraft/launch/VerifyJavaInstall.cpp index 15acf678b4..6e45ead9a7 100644 --- a/launcher/minecraft/launch/VerifyJavaInstall.cpp +++ b/launcher/minecraft/launch/VerifyJavaInstall.cpp @@ -30,18 +30,18 @@ void VerifyJavaInstall::executeTask() { // Java 16 requirement else if (minecraftComponent->getReleaseDateTime() >= g_VersionFilterData.java16BeginsDate) { if (javaVersion.major() < 16) { - emit logLine("Minecraft 21w19a and above require the use of Java 16", + emit logLine("Minecraft 21w19a (1.17) and above require the use of Java 16", MessageLevel::Fatal); - emitFailed(tr("Minecraft 21w19a and above require the use of Java 16")); + emitFailed(tr("Minecraft 21w19a (1.17) and above require the use of Java 16")); return; } } // Java 8 requirement else if (minecraftComponent->getReleaseDateTime() >= g_VersionFilterData.java8BeginsDate) { if (javaVersion.major() < 8) { - emit logLine("Minecraft 17w13a and above require the use of Java 8", + emit logLine("Minecraft 17w13a (1.12) and above require the use of Java 8", MessageLevel::Fatal); - emitFailed(tr("Minecraft 17w13a and above require the use of Java 8")); + emitFailed(tr("Minecraft 17w13a (1.12) and above require the use of Java 8")); return; } } diff --git a/launcher/minecraft/update/FMLLibrariesTask.cpp b/launcher/minecraft/update/FMLLibrariesTask.cpp index 58141991f3..2983e2afd1 100644 --- a/launcher/minecraft/update/FMLLibrariesTask.cpp +++ b/launcher/minecraft/update/FMLLibrariesTask.cpp @@ -116,7 +116,7 @@ void FMLLibrariesTask::fmllibsFailed(QString reason) { QStringList failed = downloadJob->getFailedFiles(); QString failed_all = failed.join("\n"); - emitFailed(tr("Failed to download the following files:\n%1\n\nReason:%2\nPlease try again.").arg(failed_all, reason)); + emitFailed(tr("Failed to download the following files:\n%1\n\nReason: %2\nPlease try again.").arg(failed_all, reason)); } bool FMLLibrariesTask::abort() diff --git a/launcher/modplatform/atlauncher/ATLPackInstallTask.cpp b/launcher/modplatform/atlauncher/ATLPackInstallTask.cpp index e5db512ebe..db622ec3f3 100644 --- a/launcher/modplatform/atlauncher/ATLPackInstallTask.cpp +++ b/launcher/modplatform/atlauncher/ATLPackInstallTask.cpp @@ -91,7 +91,7 @@ void PackInstallTask::onDownloadSucceeded() } catch (const JSONValidationError &e) { - emitFailed(tr("Could not understand pack manifest:\n") + e.cause()); + emitFailed(tr("Could not parse the pack manifest:\n") + e.cause()); return; } m_version = version; @@ -471,7 +471,7 @@ void PackInstallTask::extractConfigs() QuaZip packZip(archivePath); if(!packZip.open(QuaZip::mdUnzip)) { - emitFailed(tr("Failed to open pack configs %1!").arg(archivePath)); + emitFailed(tr("Failed to open the pack configs archive in %1").arg(archivePath)); return; } diff --git a/launcher/modplatform/modpacksch/FTBPackInstallTask.cpp b/launcher/modplatform/modpacksch/FTBPackInstallTask.cpp index 035702264a..8950ce7d1a 100644 --- a/launcher/modplatform/modpacksch/FTBPackInstallTask.cpp +++ b/launcher/modplatform/modpacksch/FTBPackInstallTask.cpp @@ -94,7 +94,7 @@ void PackInstallTask::onDownloadSucceeded() } catch (const JSONValidationError &e) { - emitFailed(tr("Could not understand pack manifest:\n") + e.cause()); + emitFailed(tr("Could not parse the pack manifest:\n") + e.cause()); return; } m_version = version; diff --git a/launcher/modplatform/technic/TechnicPackProcessor.cpp b/launcher/modplatform/technic/TechnicPackProcessor.cpp index 52979b7c3a..a2493267e0 100644 --- a/launcher/modplatform/technic/TechnicPackProcessor.cpp +++ b/launcher/modplatform/technic/TechnicPackProcessor.cpp @@ -90,7 +90,8 @@ void Technic::TechnicPackProcessor::run(SettingsObjectPtr globalSettings, const else { if (minecraftVersion.isEmpty()) - emit failed(tr("Could not find \"version.json\" inside \"bin/modpack.jar\", but minecraft version is unknown")); + emit failed(tr("Could not find \"version.json\" inside \"bin/modpack.jar\", " + "the Minecraft version cannot be automatically determined")); components->setComponentVersion("net.minecraft", minecraftVersion, true); components->installJarMods({modpackJar}); @@ -145,7 +146,7 @@ void Technic::TechnicPackProcessor::run(SettingsObjectPtr globalSettings, const else { // This is the "Vanilla" modpack, excluded by the search code - emit failed(tr("Unable to find a \"version.json\"!")); + emit failed(tr("Unable to find the file \"version.json\"!")); return; } @@ -158,7 +159,7 @@ void Technic::TechnicPackProcessor::run(SettingsObjectPtr globalSettings, const { if (fmlMinecraftVersion.isEmpty()) { - emit failed(tr("Could not understand \"version.json\":\ninheritsFrom is missing")); + emit failed(tr("Could not parse the file \"version.json\":\ninheritsFrom is missing")); return; } minecraftVersion = fmlMinecraftVersion; @@ -199,7 +200,7 @@ void Technic::TechnicPackProcessor::run(SettingsObjectPtr globalSettings, const } catch (const JSONValidationError &e) { - emit failed(tr("Could not understand \"version.json\":\n") + e.cause()); + emit failed(tr("Could not parse the file \"version.json\":\n") + e.cause()); return; } diff --git a/launcher/ui/InstanceWindow.cpp b/launcher/ui/InstanceWindow.cpp index ae765c3c21..875c02f891 100644 --- a/launcher/ui/InstanceWindow.cpp +++ b/launcher/ui/InstanceWindow.cpp @@ -37,7 +37,7 @@ InstanceWindow::InstanceWindow(InstancePtr instance, QWidget *parent) setAttribute(Qt::WA_DeleteOnClose); auto icon = APPLICATION->icons()->getIcon(m_instance->iconKey()); - QString windowTitle = tr("Console window for ") + m_instance->name(); + QString windowTitle = tr("Console window for %1").arg(m_instance->name()); // Set window properties { diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp index b06f3d5aed..8220763e40 100644 --- a/launcher/ui/MainWindow.cpp +++ b/launcher/ui/MainWindow.cpp @@ -350,7 +350,7 @@ class MainWindow::Ui actionDISCORD->setObjectName(QStringLiteral("actionDISCORD")); actionDISCORD->setIcon(APPLICATION->getThemedIcon("discord")); actionDISCORD.setTextId(QT_TRANSLATE_NOOP("MainWindow", "Discord")); - actionDISCORD.setTooltipId(QT_TRANSLATE_NOOP("MainWindow", "Open %1 discord voice chat.")); + actionDISCORD.setTooltipId(QT_TRANSLATE_NOOP("MainWindow", "Open %1 Discord chat.")); all_actions.append(&actionDISCORD); helpMenu->addAction(actionDISCORD); } diff --git a/launcher/ui/dialogs/ProfileSelectDialog.ui b/launcher/ui/dialogs/ProfileSelectDialog.ui index e779b51bf1..4ca46de6e2 100644 --- a/launcher/ui/dialogs/ProfileSelectDialog.ui +++ b/launcher/ui/dialogs/ProfileSelectDialog.ui @@ -35,14 +35,14 @@ - Use as default? + Use as default - Use as default for this instance only? + Use as default for this instance only diff --git a/launcher/ui/dialogs/UpdateDialog.cpp b/launcher/ui/dialogs/UpdateDialog.cpp index c0f6074c52..98836cff49 100644 --- a/launcher/ui/dialogs/UpdateDialog.cpp +++ b/launcher/ui/dialogs/UpdateDialog.cpp @@ -133,12 +133,12 @@ QString reprocessCommits(QByteArray json) result += QObject::tr("

The update removes %1 commits and adds the following %2:

").arg(commit_behind).arg(commit_ahead); print_commits(); } - result += QObject::tr("

You can look at the changes on github.

").arg(diff_url); + result += QObject::tr("

You can look at the changes on GitHub.

").arg(diff_url); return result; } catch (const JSONValidationError &e) { - qWarning() << "Got an unparseable commit log from github:" << e.what(); + qWarning() << "Got an unparseable commit log from GitHub:" << e.what(); qDebug() << json; } return QString(); diff --git a/launcher/ui/pages/global/AccountListPage.cpp b/launcher/ui/pages/global/AccountListPage.cpp index d3eb265548..cb5ad2afba 100644 --- a/launcher/ui/pages/global/AccountListPage.cpp +++ b/launcher/ui/pages/global/AccountListPage.cpp @@ -45,7 +45,7 @@ AccountListPage::AccountListPage(QWidget *parent) ui->setupUi(this); ui->listView->setEmptyString(tr( "Welcome!\n" - "If you're new here, you can click the \"Add\" button to add your Mojang or Minecraft account." + "Click the \"Add\" button to add a Mojang or Minecraft account." )); ui->listView->setEmptyMode(VersionListView::String); ui->listView->setContextMenuPolicy(Qt::CustomContextMenu); diff --git a/launcher/ui/pages/global/LauncherPage.cpp b/launcher/ui/pages/global/LauncherPage.cpp index 2eb73e44d5..a1538e579f 100644 --- a/launcher/ui/pages/global/LauncherPage.cpp +++ b/launcher/ui/pages/global/LauncherPage.cpp @@ -112,13 +112,10 @@ void LauncherPage::on_instDirBrowseBtn_clicked() if (FS::checkProblemticPathJava(QDir(cooked_dir))) { QMessageBox warning; - warning.setText(tr("You're trying to specify an instance folder which\'s path " - "contains at least one \'!\'. " - "Java is known to cause problems if that is the case, your " - "instances (probably) won't start!")); - warning.setInformativeText( - tr("Do you really want to use this path? " - "Selecting \"No\" will close this and not alter your instance path.")); + warning.setText(tr("The specified instance path contains the disallowed symbol: '!'. " + "Java has problems with paths containing '!', it is unlikely that " + "the instance will be able to start.")); + warning.setInformativeText(tr("Continue using the specified path?")); warning.setStandardButtons(QMessageBox::Yes | QMessageBox::No); int result = warning.exec(); if (result == QMessageBox::Yes) diff --git a/launcher/ui/pages/global/LauncherPage.ui b/launcher/ui/pages/global/LauncherPage.ui index 62a66d73b2..6487064e10 100644 --- a/launcher/ui/pages/global/LauncherPage.ui +++ b/launcher/ui/pages/global/LauncherPage.ui @@ -364,21 +364,21 @@ - Show console while the game is running? + Show console while the game is running - Automatically close console when the game quits? + Automatically close console when the game quits - Show console when the game crashes? + Show console when the game crashes @@ -499,7 +499,7 @@ - Send anonymous usage statistics? + Send anonymous usage statistics diff --git a/launcher/ui/pages/global/MinecraftPage.ui b/launcher/ui/pages/global/MinecraftPage.ui index 857b8cfb12..4feb4c6a9e 100644 --- a/launcher/ui/pages/global/MinecraftPage.ui +++ b/launcher/ui/pages/global/MinecraftPage.ui @@ -51,7 +51,7 @@ - Start Minecraft maximized? + Start Minecraft maximized diff --git a/launcher/ui/pages/global/PasteEEPage.ui b/launcher/ui/pages/global/PasteEEPage.ui index 1088378170..adad15639b 100644 --- a/launcher/ui/pages/global/PasteEEPage.ui +++ b/launcher/ui/pages/global/PasteEEPage.ui @@ -52,7 +52,7 @@ - &Your own key - 12MB upload limit: + &Personal key - 12MB upload limit: pasteButtonGroup @@ -65,7 +65,7 @@ QLineEdit::Password - Paste your API key here! + Paste the personal API key here diff --git a/launcher/ui/pages/instance/InstanceSettingsPage.ui b/launcher/ui/pages/instance/InstanceSettingsPage.ui index 729f8e2a6c..2a8ae80bd2 100644 --- a/launcher/ui/pages/instance/InstanceSettingsPage.ui +++ b/launcher/ui/pages/instance/InstanceSettingsPage.ui @@ -246,7 +246,7 @@ - Start Minecraft maximized? + Start Minecraft maximized diff --git a/launcher/ui/pages/instance/ScreenshotsPage.cpp b/launcher/ui/pages/instance/ScreenshotsPage.cpp index 4011d88c47..98e238602f 100644 --- a/launcher/ui/pages/instance/ScreenshotsPage.cpp +++ b/launcher/ui/pages/instance/ScreenshotsPage.cpp @@ -339,7 +339,7 @@ void ScreenshotsPage::on_actionUpload_triggered() CustomMessageBox::selectable( this, tr("Upload finished"), - tr("The link to the uploaded screenshot has been placed in your clipboard.") + tr("The link to the uploaded screenshot has been placed in your clipboard.") .arg(link), QMessageBox::Information )->exec(); diff --git a/launcher/ui/pages/instance/VersionPage.cpp b/launcher/ui/pages/instance/VersionPage.cpp index 6e57909b4c..36e97b4cde 100644 --- a/launcher/ui/pages/instance/VersionPage.cpp +++ b/launcher/ui/pages/instance/VersionPage.cpp @@ -423,7 +423,7 @@ void VersionPage::on_actionInstall_Forge_triggered() } VersionSelectDialog vselect(vlist.get(), tr("Select Forge version"), this); vselect.setExactFilter(BaseVersionList::ParentVersionRole, m_profile->getComponentVersion("net.minecraft")); - vselect.setEmptyString(tr("No Forge versions are currently available for Minecraft ") + m_profile->getComponentVersion("net.minecraft")); + vselect.setEmptyString(tr("No Forge versions are currently available for Minecraft %1").arg(m_profile->getComponentVersion("net.minecraft"))); vselect.setEmptyErrorString(tr("Couldn't load or download the Forge version lists!")); auto currentVersion = m_profile->getComponentVersion("net.minecraftforge"); diff --git a/launcher/ui/pages/instance/WorldListPage.cpp b/launcher/ui/pages/instance/WorldListPage.cpp index d2bf63bda2..0f858e9b09 100644 --- a/launcher/ui/pages/instance/WorldListPage.cpp +++ b/launcher/ui/pages/instance/WorldListPage.cpp @@ -156,7 +156,7 @@ void WorldListPage::on_actionRemove_triggered() auto result = QMessageBox::question(this, tr("Are you sure?"), - tr("This will remove the selected world permenantly.\n" + tr("This will remove the selected world permanently.\n" "The world will be gone forever (A LONG TIME).\n" "\n" "Do you want to continue?")); diff --git a/launcher/ui/pages/modplatform/ImportPage.cpp b/launcher/ui/pages/modplatform/ImportPage.cpp index c9e24ead27..9b96f9352c 100644 --- a/launcher/ui/pages/modplatform/ImportPage.cpp +++ b/launcher/ui/pages/modplatform/ImportPage.cpp @@ -103,7 +103,7 @@ void ImportPage::setUrl(const QString& url) void ImportPage::on_modpackBtn_clicked() { - const QUrl url = QFileDialog::getOpenFileUrl(this, tr("Choose modpack"), modpackUrl(), tr("Zip (*.zip)")); + const QUrl url = QFileDialog::getOpenFileUrl(this, tr("Choose modpack"), modpackUrl(), tr("ZIP Archive (*.zip)")); if (url.isValid()) { if (url.isLocalFile()) diff --git a/launcher/ui/pages/modplatform/flame/FlamePage.cpp b/launcher/ui/pages/modplatform/flame/FlamePage.cpp index 1138a2987e..c61f1ed3dd 100644 --- a/launcher/ui/pages/modplatform/flame/FlamePage.cpp +++ b/launcher/ui/pages/modplatform/flame/FlamePage.cpp @@ -100,7 +100,7 @@ void FlamePage::onSelectionChanged(QModelIndex first, QModelIndex second) for(auto & author: current.authors) { authorStrs.push_back(authorToStr(author)); } - text += "
" + tr(" by ") + authorStrs.join(", "); + text = tr("%1 by %2").arg(text + "
", authorStrs.join(", ")); } text += "

"; diff --git a/launcher/ui/pages/modplatform/legacy_ftb/Page.cpp b/launcher/ui/pages/modplatform/legacy_ftb/Page.cpp index 891704de8d..dedb71ffc0 100644 --- a/launcher/ui/pages/modplatform/legacy_ftb/Page.cpp +++ b/launcher/ui/pages/modplatform/legacy_ftb/Page.cpp @@ -238,7 +238,7 @@ void Page::onPackSelectionChanged(Modpack* pack) ui->versionSelectionBox->clear(); if(pack) { - currentModpackInfo->setHtml("Pack by " + pack->author + "" + + currentModpackInfo->setHtml(tr("Pack by %1").arg("" + pack->author + "") + "
Minecraft " + pack->mcVersion + "
" + "
" + pack->description + ""); bool currentAdded = false; diff --git a/launcher/ui/pages/modplatform/technic/TechnicPage.cpp b/launcher/ui/pages/modplatform/technic/TechnicPage.cpp index 67f6e52c7d..688748ca35 100644 --- a/launcher/ui/pages/modplatform/technic/TechnicPage.cpp +++ b/launcher/ui/pages/modplatform/technic/TechnicPage.cpp @@ -184,7 +184,7 @@ void TechnicPage::metadataLoaded() text = "" + name + ""; if (!current.author.isEmpty()) { // This allows injecting HTML here - text += tr(" by ") + current.author; + text = tr("%1 by %2").arg(text, current.author); } ui->frame->setModText(text); diff --git a/launcher/ui/setupwizard/AnalyticsWizardPage.cpp b/launcher/ui/setupwizard/AnalyticsWizardPage.cpp index 3db2f6dcc7..3b4fb70cdc 100644 --- a/launcher/ui/setupwizard/AnalyticsWizardPage.cpp +++ b/launcher/ui/setupwizard/AnalyticsWizardPage.cpp @@ -55,9 +55,9 @@ void AnalyticsWizardPage::retranslate() "
  • Anonymized (partial) IP address.
  • " "
  • Launcher version.
  • " "
  • Operating system name, version and architecture.
  • " - "
  • CPU architecture (kernel architecture on linux).
  • " + "
  • CPU architecture (kernel architecture on Linux).
  • " "
  • Size of system memory.
  • " "
  • Java version, architecture and memory settings.
  • " - "

    If we change the tracked information, you will see this page again.

    ")); + "

    If we change the tracked information, this page will be shown again.

    ")); checkBox->setText(tr("Enable Analytics")); } diff --git a/launcher/ui/widgets/JavaSettingsWidget.cpp b/launcher/ui/widgets/JavaSettingsWidget.cpp index ed07e082e9..7d1e21aef4 100644 --- a/launcher/ui/widgets/JavaSettingsWidget.cpp +++ b/launcher/ui/widgets/JavaSettingsWidget.cpp @@ -149,11 +149,10 @@ JavaSettingsWidget::ValidationStatus JavaSettingsWidget::validate() int button = CustomMessageBox::selectable( this, tr("No Java version selected"), - tr("You didn't select a Java version or selected something that doesn't work.\n" - "%1 will not be able to start Minecraft.\n" - "Do you wish to proceed without any Java?" + tr("%1 will not be able to start Minecraft, because a working Java version has not been selected.\n" + "The Java version can be changed in the settings at any time.\n" "\n\n" - "You can change the Java version in the settings later.\n" + "Proceed without Java?" ).arg(BuildConfig.LAUNCHER_NAME), QMessageBox::Warning, QMessageBox::Yes | QMessageBox::No, diff --git a/launcher/ui/widgets/MCModInfoFrame.cpp b/launcher/ui/widgets/MCModInfoFrame.cpp index 8c4bd690fb..62c1aa3b8e 100644 --- a/launcher/ui/widgets/MCModInfoFrame.cpp +++ b/launcher/ui/widgets/MCModInfoFrame.cpp @@ -41,7 +41,7 @@ void MCModInfoFrame::updateWithMod(Mod &m) else text = "" + name + ""; if (!m.authors().isEmpty()) - text += " by " + m.authors().join(", "); + text = tr("%1 by %2").arg(text, m.authors().join(", ")); setModText(text);