Add install error translatable

This commit is contained in:
sum2012 committed 2015-03-04 20:59:09 +08:00
1 parent 27270e263d
commit 4c827d1b3e
1 file changed
+4 -2
+4 -2
View File
@@ -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());
}