diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-06-11 13:43:19 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-06-11 13:43:19 +0000 |
| commit | d4bdda57d3380d1b939f440fe93e7a71f31ad53b (patch) | |
| tree | 95e311a86374a320fbe1ff0bf089de4964dada51 /src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp | |
| parent | 05881204465655b9657891cddb195e37dd5dd020 (diff) | |
| download | qmmp-d4bdda57d3380d1b939f440fe93e7a71f31ad53b.tar.gz qmmp-d4bdda57d3380d1b939f440fe93e7a71f31ad53b.tar.bz2 qmmp-d4bdda57d3380d1b939f440fe93e7a71f31ad53b.zip | |
updated translation
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@402 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp')
| -rw-r--r-- | src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp b/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp index 93a7dd21d..5c355f476 100644 --- a/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp +++ b/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp @@ -1,5 +1,6 @@ #include <QtPlugin> #include <QTranslator> +#include <QLocale> #include "incdecvolumeoption.h" @@ -53,8 +54,10 @@ const QString IncDecVolumeCommandLineOption::name() const QTranslator *IncDecVolumeCommandLineOption::createTranslator(QObject *parent) { - Q_UNUSED(parent); - return 0; + QTranslator *translator = new QTranslator(parent); + QString locale = QLocale::system().name(); + translator->load(QString(":/incdecvolume_plugin_") + locale); + return translator; } Q_EXPORT_PLUGIN(IncDecVolumeCommandLineOption) |
