mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 18:36:58 +03:00
Changed all strings displayed to end user to use qts localization system
This commit is contained in:
parent
cbf3238f0e
commit
31e5a0fe6d
11 changed files with 47 additions and 36 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue