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