summaryrefslogtreecommitdiffstats
path: root/gui/IconPickerDialog.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 /gui/IconPickerDialog.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 'gui/IconPickerDialog.cpp')
-rw-r--r--gui/IconPickerDialog.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/gui/IconPickerDialog.cpp b/gui/IconPickerDialog.cpp
index 2dd80292..f3947d21 100644
--- a/gui/IconPickerDialog.cpp
+++ b/gui/IconPickerDialog.cpp
@@ -41,8 +41,8 @@ IconPickerDialog::IconPickerDialog(QWidget *parent) :
contentsWidget->setModel(MMC->icons());
- auto buttonAdd = ui->buttonBox->addButton("Add Icon",QDialogButtonBox::ResetRole);
- auto buttonRemove = ui->buttonBox->addButton("Remove Icon",QDialogButtonBox::ResetRole);
+ auto buttonAdd = ui->buttonBox->addButton(tr("Add Icon"),QDialogButtonBox::ResetRole);
+ auto buttonRemove = ui->buttonBox->addButton(tr("Remove Icon"),QDialogButtonBox::ResetRole);
connect(buttonAdd,SIGNAL(clicked(bool)),SLOT(addNewIcon()));
@@ -87,7 +87,10 @@ bool IconPickerDialog::eventFilter ( QObject* obj, QEvent* evt)
void IconPickerDialog::addNewIcon()
{
- QStringList fileNames = QFileDialog::getOpenFileNames(this, "Select Icons", QString(), "Icons (*.png *.jpg *.jpeg)");
+ //: The title of the select icons open file dialog
+ QString selectIcons = tr("Select Icons");
+ //: The type of icon files
+ QStringList fileNames = QFileDialog::getOpenFileNames(this, selectIcons, QString(), tr("Icons") + "(*.png *.jpg *.jpeg)");
MMC->icons()->installIcons(fileNames);
}