first translation test
This commit is contained in:
+5
-1
@@ -185,7 +185,11 @@ SOURCES += src/game.cpp \
|
||||
src/gui/qt/qttools/qttoolswrapper.cpp \
|
||||
src/gui/qt/qttools/qthelper/qthelper.cpp
|
||||
RESOURCES += src/gui/qt/resources.qrc
|
||||
|
||||
TRANSLATIONS = ts/pokerth_de.ts \
|
||||
ts/pokerth_es.ts \
|
||||
ts/pokerth_it.ts \
|
||||
ts/pokerth_fr.ts
|
||||
CODECFORSRC = UTF-8
|
||||
TEMPLATE = vcapp
|
||||
TEMPLATE = app
|
||||
win32{
|
||||
|
||||
@@ -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();
|
||||
|
||||
+1271
File diff suppressed because it is too large
Load Diff
+1271
File diff suppressed because it is too large
Load Diff
+1271
File diff suppressed because it is too large
Load Diff
+1271
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user