feat(src/app/App): display correctly help in the correct locale

This commit is contained in:
Ronan Abhamon 2017-06-14 10:52:29 +02:00
parent c3f2d69310
commit f5de229269
3 changed files with 8 additions and 7 deletions

View file

@ -78,11 +78,11 @@
</message>
<message>
<source>commandLineOptionHelp</source>
<translation type="unfinished"></translation>
<translation>show this help</translation>
</message>
<message>
<source>commandLineOptionVersion</source>
<translation type="unfinished"></translation>
<translation>show app version</translation>
</message>
</context>
<context>

View file

@ -78,11 +78,11 @@
</message>
<message>
<source>commandLineOptionHelp</source>
<translation type="unfinished"></translation>
<translation>affiche cette aide</translation>
</message>
<message>
<source>commandLineOptionVersion</source>
<translation type="unfinished"></translation>
<translation>affiche la version de l&apos;application</translation>
</message>
</context>
<context>

View file

@ -90,10 +90,11 @@ App::App (int &argc, char *argv[]) : SingleApplication(argc, argv, true) {
mTranslator = new DefaultTranslator(this);
initLocale();
parseArgs();
if (mParser->isSet("help"))
if (mParser->isSet("help")) {
parseArgs();
mParser->showHelp();
}
if (mParser->isSet("version"))
mParser->showVersion();
}