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
+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();