comparison ui/administrator.cpp @ 832:170b13ea05ee

(Issue10) Force encoding to be latin-1 during installer creation.
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 24 Jul 2014 16:30:10 +0200
parents 294d76174102
children 0051cb07da28
comparison
equal deleted inserted replaced
831:747a48996c1f 832:170b13ea05ee
11 #include <QtPlugin> 11 #include <QtPlugin>
12 #include <QMessageBox> 12 #include <QMessageBox>
13 #include <QSettings> 13 #include <QSettings>
14 #include <QTranslator> 14 #include <QTranslator>
15 #include <QDebug> 15 #include <QDebug>
16 #include <QTextCodec>
16 17
17 #ifndef VERSION 18 #ifndef VERSION
18 #define VERSION "0.0.1" 19 #define VERSION "0.0.1"
19 #endif 20 #endif
20 21
64 qDebug() << "Loading translations for: " << "administrator_" + 65 qDebug() << "Loading translations for: " << "administrator_" +
65 QLocale::system().name(); 66 QLocale::system().name();
66 } 67 }
67 app.installTranslator(&translator); 68 app.installTranslator(&translator);
68 69
70 /* Out of process calls need to be encoded in latin-1 so that they
71 * look decent on western europe's windows */
72 QTextCodec::setCodecForLocale(QTextCodec::codecForName ("ISO-8859-1"));
73
69 AdministratorWindow adminWin; 74 AdministratorWindow adminWin;
70 adminWin.show(); 75 adminWin.show();
71 76
72 return app.exec(); 77 return app.exec();
73 } 78 }

http://wald.intevation.org/projects/trustbridge/