Skip to content

Commit

Permalink
Force-load translations from uibase and gamebryo/creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Jul 11, 2024
1 parent 2c9410b commit b28f7df
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 42 deletions.
16 changes: 11 additions & 5 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,24 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include "problemsdialog.h"
#include "profile.h"
#include "profilesdialog.h"
#include <uibase/report.h>
#include <uibase/game_features/savegameinfo.h>
#include "savestab.h"
#include "selectiondialog.h"
#include "serverinfo.h"
#include "settingsdialog.h"
#include "shared/appconfig.h"
#include "spawn.h"
#include "statusbar.h"
#include <uibase/tutorialmanager.h>
#include <uibase/versioninfo.h>
#include <bsainvalidation.h>
#include <dataarchives.h>
#include <safewritefile.h>
#include <scopeguard.h>
#include <taskprogressmanager.h>
#include <usvfs/usvfs.h>
#include <uibase/game_features/savegameinfo.h>
#include <uibase/report.h>
#include <uibase/tutorialmanager.h>
#include <uibase/utility.h>
#include <uibase/versioninfo.h>
#include <usvfs/usvfs.h>

#include "directoryrefresher.h"
#include "shared/directoryentry.h"
Expand Down Expand Up @@ -2896,6 +2896,12 @@ void MainWindow::languageChange(const QString& newLanguage)
installTranslator("qt");
installTranslator("qtbase");
installTranslator(ToQString(AppConfig::translationPrefix()));
installTranslator("uibase");

// TODO: this will probably be changed once extension come out
installTranslator("game_gamebryo");
installTranslator("game_creation");

for (const QString& fileName : m_PluginContainer.pluginFileNames()) {
installTranslator(QFileInfo(fileName).baseName());
}
Expand Down
74 changes: 37 additions & 37 deletions src/organizer_en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3003,7 +3003,7 @@ This is likely due to a corrupted or incompatible download or unrecognized archi
<message>
<location filename="mainwindow.ui" line="812"/>
<location filename="mainwindow.ui" line="815"/>
<location filename="mainwindow.cpp" line="3050"/>
<location filename="mainwindow.cpp" line="3056"/>
<source>Sort the plugins using LOOT.</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -3395,7 +3395,7 @@ This is likely due to a corrupted or incompatible download or unrecognized archi
<message>
<location filename="mainwindow.ui" line="1832"/>
<location filename="mainwindow.ui" line="1835"/>
<location filename="mainwindow.cpp" line="2970"/>
<location filename="mainwindow.cpp" line="2976"/>
<source>Endorse Mod Organizer</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -3812,161 +3812,161 @@ As a final option, you can disable Nexus category mapping altogether, which can
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2933"/>
<location filename="mainwindow.cpp" line="2939"/>
<source>Update available</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2971"/>
<location filename="mainwindow.cpp" line="2977"/>
<source>Do you want to endorse Mod Organizer on %1 now?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2990"/>
<location filename="mainwindow.cpp" line="2996"/>
<source>Abstain from Endorsing Mod Organizer</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2991"/>
<location filename="mainwindow.cpp" line="2997"/>
<source>Are you sure you want to abstain from endorsing Mod Organizer 2?
You will have to visit the mod page on the %1 Nexus site to change your mind.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3019"/>
<location filename="mainwindow.cpp" line="3025"/>
<source>Thank you for endorsing MO2! :)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3024"/>
<location filename="mainwindow.cpp" line="3030"/>
<source>Please reconsider endorsing MO2 on Nexus!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3053"/>
<location filename="mainwindow.cpp" line="3059"/>
<source>There is no supported sort mechanism for this game. You will probably have to use a third-party tool.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3150"/>
<location filename="mainwindow.cpp" line="3156"/>
<source>None of your %1 mods appear to have had recent file updates.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3163"/>
<location filename="mainwindow.cpp" line="3169"/>
<source>All of your mods have been checked recently. We restrict update checks to help preserve your available API requests.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3393"/>
<location filename="mainwindow.cpp" line="3399"/>
<source>Thank you!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3394"/>
<location filename="mainwindow.cpp" line="3400"/>
<source>Thank you for your endorsement!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3508"/>
<location filename="mainwindow.cpp" line="3514"/>
<source>Mod ID %1 no longer seems to be available on Nexus.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3526"/>
<location filename="mainwindow.cpp" line="3532"/>
<source>Error %1: Request to Nexus failed: %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3543"/>
<location filename="mainwindow.cpp" line="3616"/>
<location filename="mainwindow.cpp" line="3549"/>
<location filename="mainwindow.cpp" line="3622"/>
<source>failed to read %1: %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3556"/>
<location filename="mainwindow.cpp" line="3562"/>
<source>Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3557"/>
<location filename="mainwindow.cpp" line="3563"/>
<source>failed to extract %1 (errorcode %2)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3591"/>
<location filename="mainwindow.cpp" line="3597"/>
<source>Extract BSA</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3630"/>
<location filename="mainwindow.cpp" line="3636"/>
<source>This archive contains invalid hashes. Some files may be broken.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3640"/>
<location filename="mainwindow.cpp" line="3646"/>
<source>Extract...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3709"/>
<location filename="mainwindow.cpp" line="3715"/>
<source>Remove &apos;%1&apos; from the toolbar</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3765"/>
<location filename="mainwindow.cpp" line="3771"/>
<source>Backup of load order created</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3776"/>
<location filename="mainwindow.cpp" line="3782"/>
<source>Choose backup to restore</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3793"/>
<location filename="mainwindow.cpp" line="3799"/>
<source>No Backups</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3794"/>
<location filename="mainwindow.cpp" line="3800"/>
<source>There are no backups to restore</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3818"/>
<location filename="mainwindow.cpp" line="3842"/>
<location filename="mainwindow.cpp" line="3824"/>
<location filename="mainwindow.cpp" line="3848"/>
<source>Restore failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3819"/>
<location filename="mainwindow.cpp" line="3843"/>
<location filename="mainwindow.cpp" line="3825"/>
<location filename="mainwindow.cpp" line="3849"/>
<source>Failed to restore the backup. Errorcode: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3831"/>
<location filename="mainwindow.cpp" line="3837"/>
<source>Backup of mod list created</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3911"/>
<location filename="mainwindow.cpp" line="3917"/>
<source>A file with the same name has already been downloaded. What would you like to do?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3913"/>
<location filename="mainwindow.cpp" line="3919"/>
<source>Overwrite</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3914"/>
<location filename="mainwindow.cpp" line="3920"/>
<source>Rename new file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3915"/>
<location filename="mainwindow.cpp" line="3921"/>
<source>Ignore file</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -7363,7 +7363,7 @@ Destination:<byte value="xd"/>
</message>
<message>
<location filename="mainwindow.cpp" line="1824"/>
<location filename="mainwindow.cpp" line="2905"/>
<location filename="mainwindow.cpp" line="2911"/>
<source>&lt;Manage...&gt;</source>
<translation type="unfinished"></translation>
</message>
Expand Down

0 comments on commit b28f7df

Please sign in to comment.