From 50fc72ca8d4d904c0260583bd2c31beabcf14f35 Mon Sep 17 00:00:00 2001 From: Silarn Date: Thu, 9 May 2019 12:23:33 -0500 Subject: Fix missing translations --- src/nexusinterface.cpp | 7 +++---- src/organizer_en.ts | 42 ++++++++++++++++++++++-------------------- 2 files changed, 25 insertions(+), 24 deletions(-) (limited to 'src') diff --git a/src/nexusinterface.cpp b/src/nexusinterface.cpp index a4c08f53..c677add0 100644 --- a/src/nexusinterface.cpp +++ b/src/nexusinterface.cpp @@ -641,7 +641,7 @@ void NexusInterface::nextRequest() } else if (getAccessManager()->validateWaiting()) { return; } else { - qCritical("You must authorize MO2 in Settings -> Nexus to use the Nexus API."); + qCritical() << tr("You must authorize MO2 in Settings -> Nexus to use the Nexus API."); } } @@ -650,7 +650,7 @@ void NexusInterface::nextRequest() QTime time = QTime::currentTime(); QTime targetTime; targetTime.setHMS((time.hour() + 1) % 23, 5, 0); - QString warning("You've exceeded the Nexus API rate limit and requests are now being throttled. " + QString warning = tr("You've exceeded the Nexus API rate limit and requests are now being throttled. " "Your next batch of requests will be available in approximately %1 minutes and %2 seconds."); qWarning() << warning.arg(time.secsTo(targetTime) / 60).arg(time.secsTo(targetTime) % 60); return; @@ -702,9 +702,8 @@ void NexusInterface::nextRequest() url = QString("%1/games/%2/mods/%3/files/%4/download_link?key=%5&expires=%6") .arg(info.m_URL).arg(info.m_GameName).arg(info.m_ModID).arg(info.m_FileID).arg(fileInfo->nexusKey).arg(fileInfo->nexusExpires); } else { - QString warning("Aborting download: Either you clicked on a premium-only link and your account is not premium, " + qWarning() << tr("Aborting download: Either you clicked on a premium-only link and your account is not premium, " "or the download link was generated by a different account than the one stored in Mod Organizer."); - qWarning() << warning; return; } } break; diff --git a/src/organizer_en.ts b/src/organizer_en.ts index b8f4914f..93997047 100644 --- a/src/organizer_en.ts +++ b/src/organizer_en.ts @@ -4490,12 +4490,27 @@ p, li { white-space: pre-wrap; } - + + You must authorize MO2 in Settings -> Nexus to use the Nexus API. + + + + + You've exceeded the Nexus API rate limit and requests are now being throttled. Your next batch of requests will be available in approximately %1 minutes and %2 seconds. + + + + + Aborting download: Either you clicked on a premium-only link and your account is not premium, or the download link was generated by a different account than the one stored in Mod Organizer. + + + + empty response - + invalid response @@ -5097,10 +5112,6 @@ p, li { white-space: pre-wrap; } Missing files: - Some of your profile-specific game INI files were missing. They will now be copied from the vanilla game folder. You might want double-check your settings. - -Missing files: - @@ -6086,6 +6097,11 @@ Select Show Details option to see the full change-log. Failed to retrieve a Nexus API key! Please try again. A browser window should open asking you to authorize. + + + Restart Mod Organizer? + + In order to finish configuration changes, MO must be restarted. @@ -6097,11 +6113,6 @@ Restart it now? Failed to create "%1", you may not have the necessary permission. path remains unchanged. - - - Restart Mod Organizer? - - SettingsDialog @@ -6362,11 +6373,6 @@ If you use pre-releases, never contact me directly by e-mail or via private mess p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Allows Mod Organizer to connect to the Nexus for downloading mods, checking for updates, and other such things. Clicking &quot;Connect to Nexus&quot; will open a Nexus webpage to authorise Mod Organizer. You will need to be logged into your Nexus account. The authorisation is stored in the Windows Credential Manager. Your Nexus username and password are not required or stored by Mod Organizer.</p></body></html> - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">Allows automatic log-in when the Nexus-Page for the game is clicked. Please note that the obfuscation with which the password is stored in modorganizer.ini is not very strong. If you're worried someone might steal your password, don't store it here.</span></p></body></html> @@ -7286,15 +7292,12 @@ Please go along with the tutorial because some things can't be demonstrated The highlighted button provides hints on solving potential problems MO recognized automatically. - The highlighted button provides hints on solving problems MO recognized automatically. There IS a notification now but you may want to hold off on clearing it until after completing the tutorial. - -There IS a problem now but you may want to hold off on fixing it until after completing the tutorial. @@ -7491,7 +7494,6 @@ Please open the "Nexus"-tab Notifications about the current setup. - Reports potential Problems about the current setup. -- cgit v1.3.1