diff --git a/AUTHORS.md b/AUTHORS.md index a18fb42a1c..1ec909d106 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -74,6 +74,7 @@ Programmers Fil Krynicki (filkry) Finbar Crago (finbar-crago) Florian Weber (Florianjw) + Gaëtan Dezeiraud (Brouilles) Gašper Sedej Gijsbert ter Horst (Ghostbird) Gohan1989 diff --git a/apps/launcher/main.cpp b/apps/launcher/main.cpp index c4cf568c4b..cf720f8b80 100644 --- a/apps/launcher/main.cpp +++ b/apps/launcher/main.cpp @@ -1,6 +1,7 @@ #include #include +#include #include #include #include @@ -26,6 +27,13 @@ int main(int argc, char *argv[]) QApplication app(argc, argv); + // Internationalization + QString locale = QLocale::system().name().section('_', 0, 0); + + QTranslator appTranslator; + appTranslator.load(":/translations/" + locale + ".qm"); + app.installTranslator(&appTranslator); + // Now we make sure the current dir is set to application path QDir dir(QCoreApplication::applicationDirPath()); diff --git a/apps/launcher/maindialog.cpp b/apps/launcher/maindialog.cpp index 6a17110076..4ec7f34a7e 100644 --- a/apps/launcher/maindialog.cpp +++ b/apps/launcher/maindialog.cpp @@ -55,6 +55,7 @@ Launcher::MainDialog::MainDialog(QWidget *parent) iconWidget->setFlow(QListView::LeftToRight); QPushButton *playButton = new QPushButton(tr("Play")); + buttonBox->button(QDialogButtonBox::Close)->setText(tr("Close")); buttonBox->addButton(playButton, QDialogButtonBox::AcceptRole); connect(buttonBox, SIGNAL(rejected()), this, SLOT(close())); diff --git a/apps/launcher/settingspage.cpp b/apps/launcher/settingspage.cpp index d112916dcb..59d7cfd25b 100644 --- a/apps/launcher/settingspage.cpp +++ b/apps/launcher/settingspage.cpp @@ -27,13 +27,13 @@ Launcher::SettingsPage::SettingsPage(Files::ConfigurationManager &cfg, setupUi(this); QStringList languages; - languages << QLatin1String("English") - << QLatin1String("French") - << QLatin1String("German") - << QLatin1String("Italian") - << QLatin1String("Polish") - << QLatin1String("Russian") - << QLatin1String("Spanish"); + languages << tr("English") + << tr("French") + << tr("German") + << tr("Italian") + << tr("Polish") + << tr("Russian") + << tr("Spanish"); languageComboBox->addItems(languages);