Commit 87363226 authored by Ghislain MARY's avatar Ghislain MARY

Use labels in source code for translation instead of real strings.

parent 5e37e2cf
...@@ -4,24 +4,24 @@ ...@@ -4,24 +4,24 @@
<context> <context>
<name>App</name> <name>App</name>
<message> <message>
<source>Linphone seems to be running correctly</source> <source>selftestResult</source>
<translation type="unfinished"></translation> <translation>Linphone seems to be running correctly.</translation>
</message> </message>
<message> <message>
<source>Log to stdout some debug information while running.</source> <source>commandLineOptionVerbose</source>
<translation type="unfinished"></translation> <translation>Log to stdout some debug information while running.</translation>
</message> </message>
<message> <message>
<source>Specify the linphone configuration file to use.</source> <source>commandLineOptionConfig</source>
<translation type="unfinished"></translation> <translation>Specify the linphone configuration file to use.</translation>
</message> </message>
<message> <message>
<source>Run self test and exit 0 if it succeeded.</source> <source>commandLineOptionSelftest</source>
<translation type="unfinished"></translation> <translation>Run self test and exit 0 if it succeeded.</translation>
</message> </message>
<message> <message>
<source>A free SIP video-phone</source> <source>applicationDescription</source>
<translation type="unfinished"></translation> <translation>A free SIP video-phone</translation>
</message> </message>
</context> </context>
<context> <context>
......
...@@ -4,23 +4,23 @@ ...@@ -4,23 +4,23 @@
<context> <context>
<name>App</name> <name>App</name>
<message> <message>
<source>Linphone seems to be running correctly</source> <source>selftestResult</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Log to stdout some debug information while running.</source> <source>commandLineOptionVerbose</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Specify the linphone configuration file to use.</source> <source>commandLineOptionConfig</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Run self test and exit 0 if it succeeded.</source> <source>commandLineOptionSelftest</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>A free SIP video-phone</source> <source>applicationDescription</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
......
...@@ -154,13 +154,13 @@ void App::initContentApp () { ...@@ -154,13 +154,13 @@ void App::initContentApp () {
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void App::parseArgs () { void App::parseArgs () {
m_parser.setApplicationDescription(tr("A free SIP video-phone")); m_parser.setApplicationDescription(tr("applicationDescription"));
m_parser.addHelpOption(); m_parser.addHelpOption();
m_parser.addVersionOption(); m_parser.addVersionOption();
m_parser.addOptions({ m_parser.addOptions({
{ "config", tr("Specify the linphone configuration file to use."), "file" }, { "config", tr("commandLineOptionConfig"), "file" },
{ "selftest", tr("Run self test and exit 0 if it succeeded.") }, { "selftest", tr("commandLineOptionSelftest") },
{ { "V", "verbose" }, tr("Log to stdout some debug information while running.") } { { "V", "verbose" }, tr("commandLineOptionVerbose") }
}); });
m_parser.process(*this); m_parser.process(*this);
...@@ -320,7 +320,7 @@ void App::setTrayIcon () { ...@@ -320,7 +320,7 @@ void App::setTrayIcon () {
void App::quit () { void App::quit () {
if (m_parser.isSet("selftest")) { if (m_parser.isSet("selftest")) {
cout << tr("Linphone seems to be running correctly").toStdString() << endl; cout << tr("selftestResult").toStdString() << endl;
} }
QCoreApplication::quit(); QCoreApplication::quit();
} }
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