diff options
author | Ken Moore <ken@pcbsd.org> | 2014-09-08 10:48:54 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-09-08 10:48:54 -0400 |
commit | 8cf5da0dd5a3cea25f2371bdbe9904546366e3a7 (patch) | |
tree | a90d78e20c72918e502e9446ac1276d7a33d9fd1 /lumina-open | |
parent | Make sure that the translation codec is set to the text codec for the current... (diff) | |
download | lumina-8cf5da0dd5a3cea25f2371bdbe9904546366e3a7.tar.gz lumina-8cf5da0dd5a3cea25f2371bdbe9904546366e3a7.tar.bz2 lumina-8cf5da0dd5a3cea25f2371bdbe9904546366e3a7.zip |
Also make sure that lumina-open uses the current locale encoding for translations.
Diffstat (limited to 'lumina-open')
-rw-r--r-- | lumina-open/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lumina-open/main.cpp b/lumina-open/main.cpp index 8334b882..5000c2ac 100644 --- a/lumina-open/main.cpp +++ b/lumina-open/main.cpp @@ -22,6 +22,7 @@ #include <QPixmap> #include <QColor> #include <QFont> +#include <QTextCodec> #include "LFileDialog.h" @@ -58,6 +59,9 @@ void setupApplication(int argc, char **argv){ translator.load( QString("lumina-open_") + langCode, PREFIX + "/share/Lumina-DE/i18n/" ); App->installTranslator( &translator ); qDebug() << "Locale:" << langCode; + //Load current encoding for this locale + QTextCodec::setCodecForTr( QTextCodec::codecForLocale() ); //make sure to use the same codec + qDebug() << "Locale Encoding:" << QTextCodec::codecForLocale()->name(); } void showOSD(int argc, char **argv, QString message){ |