summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-03-23 19:07:13 +0100
committerPetr Mrázek <peterix@gmail.com>2014-03-23 19:07:13 +0100
commit4a24ea6c38015a1a1d937c85b9caedaf5ce251d8 (patch)
tree4c628e713593b2d3ec416fe1decdcb1b8cc14b87 /gui
parenta01b1707deee6ee1a8e5102ad991368da3312259 (diff)
downloadMultiMC-4a24ea6c38015a1a1d937c85b9caedaf5ce251d8.tar
MultiMC-4a24ea6c38015a1a1d937c85b9caedaf5ce251d8.tar.gz
MultiMC-4a24ea6c38015a1a1d937c85b9caedaf5ce251d8.tar.lz
MultiMC-4a24ea6c38015a1a1d937c85b9caedaf5ce251d8.tar.xz
MultiMC-4a24ea6c38015a1a1d937c85b9caedaf5ce251d8.zip
Make some more error messages translateable.
Diffstat (limited to 'gui')
-rw-r--r--gui/MainWindow.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp
index 65db066b..60b64cb9 100644
--- a/gui/MainWindow.cpp
+++ b/gui/MainWindow.cpp
@@ -757,7 +757,7 @@ void MainWindow::on_actionAddInstance_triggered()
auto &loader = InstanceFactory::get();
auto error = loader.createInstance(newInstance, newInstDlg.selectedVersion(), instDir);
- QString errorMsg = QString("Failed to create instance %1: ").arg(instDirName);
+ QString errorMsg = tr("Failed to create instance %1: ").arg(instDirName);
switch (error)
{
case InstanceFactory::NoCreateError:
@@ -768,21 +768,21 @@ void MainWindow::on_actionAddInstance_triggered()
case InstanceFactory::InstExists:
{
- errorMsg += "An instance with the given directory name already exists.";
+ errorMsg += tr("An instance with the given directory name already exists.");
CustomMessageBox::selectable(this, tr("Error"), errorMsg, QMessageBox::Warning)->show();
return;
}
case InstanceFactory::CantCreateDir:
{
- errorMsg += "Failed to create the instance directory.";
+ errorMsg += tr("Failed to create the instance directory.");
CustomMessageBox::selectable(this, tr("Error"), errorMsg, QMessageBox::Warning)->show();
return;
}
default:
{
- errorMsg += QString("Unknown instance loader error %1").arg(error);
+ errorMsg += tr("Unknown instance loader error %1").arg(error);
CustomMessageBox::selectable(this, tr("Error"), errorMsg, QMessageBox::Warning)->show();
return;
}
@@ -828,7 +828,7 @@ void MainWindow::on_actionCopyInstance_triggered()
BaseInstance *newInstance = NULL;
auto error = loader.copyInstance(newInstance, m_selectedInstance, instDir);
- QString errorMsg = QString("Failed to create instance %1: ").arg(instDirName);
+ QString errorMsg = tr("Failed to create instance %1: ").arg(instDirName);
switch (error)
{
case InstanceFactory::NoCreateError:
@@ -839,21 +839,21 @@ void MainWindow::on_actionCopyInstance_triggered()
case InstanceFactory::InstExists:
{
- errorMsg += "An instance with the given directory name already exists.";
+ errorMsg += tr("An instance with the given directory name already exists.");
CustomMessageBox::selectable(this, tr("Error"), errorMsg, QMessageBox::Warning)->show();
break;
}
case InstanceFactory::CantCreateDir:
{
- errorMsg += "Failed to create the instance directory.";
+ errorMsg += tr("Failed to create the instance directory.");
CustomMessageBox::selectable(this, tr("Error"), errorMsg, QMessageBox::Warning)->show();
break;
}
default:
{
- errorMsg += QString("Unknown instance loader error %1").arg(error);
+ errorMsg += tr("Unknown instance loader error %1").arg(error);
CustomMessageBox::selectable(this, tr("Error"), errorMsg, QMessageBox::Warning)->show();
break;
}