aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/hal/halfactory.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-05-29 12:09:30 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-05-29 12:09:30 +0000
commitf0a1d05ed7dc9e5a35ee41e5d15a82702a1ab3c7 (patch)
tree373a5e20b0758323e0e427633ec4e02f82385af1 /src/plugins/General/hal/halfactory.cpp
parentbcc8aa02637d4f2adba0be29fed6338b5598f29c (diff)
downloadqmmp-f0a1d05ed7dc9e5a35ee41e5d15a82702a1ab3c7.tar.gz
qmmp-f0a1d05ed7dc9e5a35ee41e5d15a82702a1ab3c7.tar.bz2
qmmp-f0a1d05ed7dc9e5a35ee41e5d15a82702a1ab3c7.zip
fixed language detection
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@953 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/hal/halfactory.cpp')
-rw-r--r--src/plugins/General/hal/halfactory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/General/hal/halfactory.cpp b/src/plugins/General/hal/halfactory.cpp
index 513f8642a..4c7cfd04b 100644
--- a/src/plugins/General/hal/halfactory.cpp
+++ b/src/plugins/General/hal/halfactory.cpp
@@ -19,7 +19,7 @@
***************************************************************************/
#include <QtGui>
-
+#include <qmmp/qmmp.h>
#include "settingsdialog.h"
#include "halplugin.h"
#include "halfactory.h"
@@ -57,7 +57,7 @@ void HalFactory::showAbout(QWidget *parent)
QTranslator *HalFactory::createTranslator(QObject *parent)
{
QTranslator *translator = new QTranslator(parent);
- QString locale = QLocale::system().name();
+ QString locale = Qmmp::systemLanguageID();
translator->load(QString(":/hal_plugin_") + locale);
return translator;
}