Skip to content

Commit 7cce4df

Browse files
committed
Add translation placeholders.
1 parent 7befaea commit 7cce4df

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

UnleashedRecomp/locale/locale.cpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,28 @@ std::unordered_map<std::string_view, std::unordered_map<ELanguage, std::string>>
703703
{ ELanguage::Italian, "Impossibile trovare il modulo \"%s\".\n\nAssicurati che:\n\n- Hai estratto questa copia di Unleashed Recompiled correttamente e non solo il file *.exe.\n- Non stai eseguendo Unleashed Recompiled da un file *.zip." }
704704
}
705705
},
706+
{
707+
"IntegrityCheck_Success",
708+
{
709+
{ ELanguage::English, "Installation check has finished.\n\nAll files seem to be correct.\n\nThe game will now close. Remove the launch argument to play the game." },
710+
{ ELanguage::Japanese, "Installation check has finished.\n\nAll files seem to be correct.\n\nThe game will now close. Remove the launch argument to play the game." }, // TODO
711+
{ ELanguage::German, "Installation check has finished.\n\nAll files seem to be correct.\n\nThe game will now close. Remove the launch argument to play the game." }, // TODO
712+
{ ELanguage::French, "Installation check has finished.\n\nAll files seem to be correct.\n\nThe game will now close. Remove the launch argument to play the game." }, // TODO
713+
{ ELanguage::Spanish, "Installation check has finished.\n\nAll files seem to be correct.\n\nThe game will now close. Remove the launch argument to play the game." }, // TODO
714+
{ ELanguage::Italian, "Installation check has finished.\n\nAll files seem to be correct.\n\nThe game will now close. Remove the launch argument to play the game." }, // TODO
715+
}
716+
},
717+
{
718+
"IntegrityCheck_Failed",
719+
{
720+
{ ELanguage::English, "Installation check has failed.\n\nError: %s\n\nThe game will now close. Try reinstalling the game by using the --install launch argument." },
721+
{ ELanguage::Japanese, "Installation check has failed.\n\nError: %s\n\nThe game will now close. Try reinstalling the game by using the --install launch argument." }, // TODO
722+
{ ELanguage::German, "Installation check has failed.\n\nError: %s\n\nThe game will now close. Try reinstalling the game by using the --install launch argument." }, // TODO
723+
{ ELanguage::French, "Installation check has failed.\n\nError: %s\n\nThe game will now close. Try reinstalling the game by using the --install launch argument." }, // TODO
724+
{ ELanguage::Spanish, "Installation check has failed.\n\nError: %s\n\nThe game will now close. Try reinstalling the game by using the --install launch argument." }, // TODO
725+
{ ELanguage::Italian, "Installation check has failed.\n\nError: %s\n\nThe game will now close. Try reinstalling the game by using the --install launch argument." }, // TODO
726+
}
727+
},
706728
{
707729
"Common_On",
708730
{

UnleashedRecomp/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,13 @@ int main(int argc, char *argv[])
250250
uint32_t messageBoxStyle;
251251
if (journal.lastResult == Journal::Result::Success)
252252
{
253-
snprintf(resultText, sizeof(resultText), "Installation check has finished.\n\nAll files seem to be correct.\n\nThe game will now close. Remove the launch argument to play the game.");
253+
snprintf(resultText, sizeof(resultText), "%s", Localise("IntegrityCheck_Success").c_str());
254254
fprintf(stdout, "%s\n", resultText);
255255
messageBoxStyle = SDL_MESSAGEBOX_INFORMATION;
256256
}
257257
else
258258
{
259-
snprintf(resultText, sizeof(resultText), "Installation check has failed.\n\nError: %s\n\nThe game will now close. Try reinstalling the game by using the --install launch argument.", journal.lastErrorMessage.c_str());
259+
snprintf(resultText, sizeof(resultText), Localise("IntegrityCheck_Failed").c_str(), journal.lastErrorMessage.c_str());
260260
fprintf(stderr, "%s\n", resultText);
261261
messageBoxStyle = SDL_MESSAGEBOX_ERROR;
262262
}

0 commit comments

Comments
 (0)