first translation test
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
<RCC>
|
||||
<qresource prefix="/translations" >
|
||||
<file>resources/translations/pokerth_de.qm</file>
|
||||
</qresource>
|
||||
<qresource prefix="/actions" >
|
||||
<file>resources/graphics/actions/action_allin.png</file>
|
||||
<file>resources/graphics/actions/action_bet.png</file>
|
||||
|
||||
Binary file not shown.
@@ -65,6 +65,12 @@ int main( int argc, char **argv )
|
||||
QApplication a( argc, argv );
|
||||
a.setStyle(new QPlastiqueStyle);
|
||||
Q_INIT_RESOURCE(resources);
|
||||
|
||||
QString locale = QLocale::system().name();
|
||||
|
||||
QTranslator translator;
|
||||
translator.load(QString(":/translations/resources/translations/pokerth_") + locale);
|
||||
a.installTranslator(&translator);
|
||||
///////////////////////////////////////////////////
|
||||
|
||||
GuiInterface *myGuiInterface = new GuiWrapper();
|
||||
|
||||
Reference in New Issue
Block a user