summaryrefslogtreecommitdiffstats
path: root/gui/dialogs/SettingsDialog.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-05-17 18:21:32 +0200
committerPetr Mrázek <peterix@gmail.com>2014-05-17 18:21:32 +0200
commit7f2a16917e347db2ffcdd5a148feda71f6f3a47e (patch)
tree12d7d1d7439497f7cdfee81ffe5d249e79255bff /gui/dialogs/SettingsDialog.cpp
parent8a8c4193e6ee7cd55870ef8495cb7cc3b9534e02 (diff)
downloadMultiMC-7f2a16917e347db2ffcdd5a148feda71f6f3a47e.tar
MultiMC-7f2a16917e347db2ffcdd5a148feda71f6f3a47e.tar.gz
MultiMC-7f2a16917e347db2ffcdd5a148feda71f6f3a47e.tar.lz
MultiMC-7f2a16917e347db2ffcdd5a148feda71f6f3a47e.tar.xz
MultiMC-7f2a16917e347db2ffcdd5a148feda71f6f3a47e.zip
Add static data path for ... static data. Like translations. Move translations there.
Diffstat (limited to 'gui/dialogs/SettingsDialog.cpp')
-rw-r--r--gui/dialogs/SettingsDialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/dialogs/SettingsDialog.cpp b/gui/dialogs/SettingsDialog.cpp
index 7ec48336..2dd19077 100644
--- a/gui/dialogs/SettingsDialog.cpp
+++ b/gui/dialogs/SettingsDialog.cpp
@@ -407,8 +407,8 @@ void SettingsDialog::loadSettings(SettingsObject *s)
// Language
ui->languageBox->clear();
ui->languageBox->addItem(tr("English"), QLocale(QLocale::English));
- foreach(const QString & lang,
- QDir(MMC->root() + "/translations").entryList(QStringList() << "*.qm", QDir::Files))
+ foreach(const QString & lang, QDir(MMC->staticData() + "/translations")
+ .entryList(QStringList() << "*.qm", QDir::Files))
{
QLocale locale(lang.section(QRegExp("[_\.]"), 1));
ui->languageBox->addItem(QLocale::languageToString(locale.language()), locale);