Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 29db945a authored by Luigi Toscano's avatar Luigi Toscano

Fix translations for ksirk and ksirkskineditor

Initialize QApplication as soon as possible, and likewise set
the translation domain immediately after. The translation domain
was previously not set for ksirkskineditor.
parent 33e929aa
......@@ -29,6 +29,9 @@ This is the standard main function of a KDE application simplified for KsirK
int main(int argc, char *argv[])
{
qDebug() << "Hello KsirK";
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("ksirk");
KAboutData aboutData(QStringLiteral("ksirk"),
i18n("KsirK"),
......@@ -50,10 +53,6 @@ int main(int argc, char *argv[])
aboutData.setOrganizationDomain(QByteArray("kde.org"));
aboutData.setProductName(QByteArray("ksirk"));
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("ksirk");
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("ksirk")));
KAboutData::setApplicationData(aboutData);
KCrash::initialize();
......
......@@ -42,6 +42,8 @@ static const char *description =
int main(int argc, char *argv[])
{
qCDebug(KSIRKSKINEDITOR_LOG) << "Hello World!";
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("ksirkskineditor");
KAboutData aboutData(
"ksirkskineditor",
i18n("KsirK Skin Editor"),
......@@ -53,7 +55,6 @@ int main(int argc, char *argv[])
"http://games.kde.org/game.php?game=ksirk");
aboutData.addAuthor(i18n("Gael de Chalendar aka Kleag"),QString(), "kleag@free.fr");
QApplication app(argc, argv);
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
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