From 4c827d1b3ec8cd04fa2c8d59f8288b5c4ce012ab Mon Sep 17 00:00:00 2001 From: sum2012 Date: Wed, 4 Mar 2015 20:59:09 +0800 Subject: [PATCH] Add install error translatable --- Core/Util/GameManager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/Util/GameManager.cpp b/Core/Util/GameManager.cpp index 51d79e8b48..92d4888207 100644 --- a/Core/Util/GameManager.cpp +++ b/Core/Util/GameManager.cpp @@ -29,6 +29,7 @@ #include "Core/Config.h" #include "Core/System.h" #include "Core/Util/GameManager.h" +#include "i18n/i18n.h" GameManager g_GameManager; @@ -120,6 +121,7 @@ bool GameManager::InstallGame(std::string zipfile, bool deleteAfter) { return false; } + I18NCategory *s = GetI18NCategory("System"); installInProgress_ = true; std::string pspGame = GetSysDirectory(DIRECTORY_GAME); @@ -178,7 +180,7 @@ bool GameManager::InstallGame(std::string zipfile, bool deleteAfter) { ERROR_LOG(HLE, "File not a PSP game, no EBOOT.PBP found."); installProgress_ = 0.0f; installInProgress_ = false; - installError_ = "Not a PSP game"; + installError_ = s->T("Not a PSP game"); InstallDone(); return false; } @@ -282,7 +284,7 @@ bail: // We end up here if disk is full or couldn't write to storage for some other reason. installProgress_ = 0.0f; installInProgress_ = false; - installError_ = "Storage full"; + installError_ = s->T("Storage full"); if (deleteAfter) { deleteFile(zipfile.c_str()); }