first translation test

This commit is contained in:
doitux
2007-04-30 12:19:14 +00:00
parent 8aeba9c16f
commit a857719dff
8 changed files with 5098 additions and 1 deletions
+5 -1
View File
@@ -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{
+3
View File
@@ -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.
+6
View File
@@ -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
View File
File diff suppressed because it is too large Load Diff
+1271
View File
File diff suppressed because it is too large Load Diff
+1271
View File
File diff suppressed because it is too large Load Diff
+1271
View File
File diff suppressed because it is too large Load Diff