summaryrefslogtreecommitdiffstats
path: root/logic/MinecraftProcess.cpp
diff options
context:
space:
mode:
authorStiepen22 <stiepen22@gmx.de>2013-09-08 18:13:09 +0200
committerStiepen22 <stiepen22@gmx.de>2013-09-08 18:13:09 +0200
commit31e5a0fe6d75e124bc772faafcef2618e16c3dbf (patch)
treea49f2cd2669423fb185baaa6fed78370c3ae3e45 /logic/MinecraftProcess.cpp
parentcbf3238f0e4d761ff34c9469f1ec88bd937152a5 (diff)
downloadMultiMC-31e5a0fe6d75e124bc772faafcef2618e16c3dbf.tar
MultiMC-31e5a0fe6d75e124bc772faafcef2618e16c3dbf.tar.gz
MultiMC-31e5a0fe6d75e124bc772faafcef2618e16c3dbf.tar.lz
MultiMC-31e5a0fe6d75e124bc772faafcef2618e16c3dbf.tar.xz
MultiMC-31e5a0fe6d75e124bc772faafcef2618e16c3dbf.zip
Changed all strings displayed to end user to use qts localization system
Diffstat (limited to 'logic/MinecraftProcess.cpp')
-rw-r--r--logic/MinecraftProcess.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/logic/MinecraftProcess.cpp b/logic/MinecraftProcess.cpp
index c33d34a8..299f00be 100644
--- a/logic/MinecraftProcess.cpp
+++ b/logic/MinecraftProcess.cpp
@@ -120,9 +120,11 @@ void MinecraftProcess::finish(int code, ExitStatus status)
// TODO: Localization
if (!killed)
- emit log("Minecraft exited.");
+ //: Message displayed on instance exit
+ emit log(tr("Minecraft exited with exitcode %1.").arg(status));
else
- emit log("Minecraft was killed by user.", MessageLevel::Error);
+ //: Message displayed after the instance exits due to kill request
+ emit log(tr("Minecraft was killed by user."), MessageLevel::Error);
m_prepostlaunchprocess.processEnvironment().insert("INST_EXITCODE", QString(code));
@@ -168,7 +170,8 @@ void MinecraftProcess::launch()
start(JavaPath, m_args);
if (!waitForStarted())
{
- emit log("Could not launch minecraft!");
+ //: Error message displayed if instace can't start
+ emit log(tr("Could not launch minecraft!"));
return;
//TODO: error handling
}