Commit f5de2292 authored by Ronan Abhamon's avatar Ronan Abhamon

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

parent c3f2d693
...@@ -78,11 +78,11 @@ ...@@ -78,11 +78,11 @@
</message> </message>
<message> <message>
<source>commandLineOptionHelp</source> <source>commandLineOptionHelp</source>
<translation type="unfinished"></translation> <translation>show this help</translation>
</message> </message>
<message> <message>
<source>commandLineOptionVersion</source> <source>commandLineOptionVersion</source>
<translation type="unfinished"></translation> <translation>show app version</translation>
</message> </message>
</context> </context>
<context> <context>
......
...@@ -78,11 +78,11 @@ ...@@ -78,11 +78,11 @@
</message> </message>
<message> <message>
<source>commandLineOptionHelp</source> <source>commandLineOptionHelp</source>
<translation type="unfinished"></translation> <translation>affiche cette aide</translation>
</message> </message>
<message> <message>
<source>commandLineOptionVersion</source> <source>commandLineOptionVersion</source>
<translation type="unfinished"></translation> <translation>affiche la version de l&apos;application</translation>
</message> </message>
</context> </context>
<context> <context>
......
...@@ -90,10 +90,11 @@ App::App (int &argc, char *argv[]) : SingleApplication(argc, argv, true) { ...@@ -90,10 +90,11 @@ App::App (int &argc, char *argv[]) : SingleApplication(argc, argv, true) {
mTranslator = new DefaultTranslator(this); mTranslator = new DefaultTranslator(this);
initLocale(); initLocale();
parseArgs(); if (mParser->isSet("help")) {
parseArgs();
if (mParser->isSet("help"))
mParser->showHelp(); mParser->showHelp();
}
if (mParser->isSet("version")) if (mParser->isSet("version"))
mParser->showVersion(); mParser->showVersion();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment