Commit f9593770 authored by Luigi Toscano's avatar Luigi Toscano

Set the translation domain just once at the proper time

The translation domain must be set immediately after the QApplication
instance is created, before any i18n call takes place. See:

https://api.kde.org/frameworks/ki18n/html/prg_guide.html#link_prog
parent 14bee1c6
......@@ -93,6 +93,8 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("elisa");
#if defined Qt5AndroidExtras_FOUND && Qt5AndroidExtras_FOUND
qInfo() << QCoreApplication::arguments();
......@@ -108,8 +110,6 @@ int main(int argc, char *argv[])
QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("elisa")));
KLocalizedString::setApplicationDomain("elisa");
KAboutData aboutData( QStringLiteral("elisa"),
i18n("Elisa"),
QStringLiteral(ELISA_VERSION_STRING),
......@@ -127,8 +127,6 @@ int main(int argc, char *argv[])
KAboutData::setApplicationData(aboutData);
KLocalizedString::setApplicationDomain("elisa");
QCommandLineParser parser;
parser.addHelpOption();
parser.addVersionOption();
......
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