some preparation work for translations
This commit is contained in:
parent
7ddb54601c
commit
3e715423c1
3 changed files with 2905 additions and 0 deletions
13
src/main.cpp
13
src/main.cpp
|
@ -26,6 +26,7 @@
|
|||
#include <QMessageBox>
|
||||
#include <QDir>
|
||||
#include <QTextStream>
|
||||
#include <QTranslator>
|
||||
#include "global.h"
|
||||
#include "clientdlg.h"
|
||||
#include "serverdlg.h"
|
||||
|
@ -463,6 +464,7 @@ int main ( int argc, char** argv )
|
|||
#endif
|
||||
}
|
||||
|
||||
|
||||
// Dependencies ------------------------------------------------------------
|
||||
// per definition: if we are in "GUI" server mode and no central server
|
||||
// address is given, we use the default central server address
|
||||
|
@ -497,6 +499,17 @@ int main ( int argc, char** argv )
|
|||
Q_INIT_RESOURCE(resources);
|
||||
|
||||
|
||||
// TODO translation loading does not yet work
|
||||
// // load translations
|
||||
// if ( bUseGUI )
|
||||
// {
|
||||
// QTranslator myappTranslator;
|
||||
// bool ret = myappTranslator.load ( "src/res/translation_" + QLocale::system().name() );
|
||||
//qDebug() << "translation successfully loaded: " << ret << " " << "src/res/translation_" + QLocale::system().name();
|
||||
// pApp->installTranslator ( &myappTranslator );
|
||||
// }
|
||||
|
||||
|
||||
// TEST -> activate the following line to activate the test bench,
|
||||
//CTestbench Testbench ( "127.0.0.1", LLCON_DEFAULT_PORT_NUMBER );
|
||||
|
||||
|
|
1446
src/res/translation_de_DE.ts
Normal file
1446
src/res/translation_de_DE.ts
Normal file
File diff suppressed because it is too large
Load diff
1446
src/res/translation_fr_FR.ts
Normal file
1446
src/res/translation_fr_FR.ts
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue