Commit d781102c authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

Fix i18n warning

Do not pass a null translation domain, use the API as recommended by
KAboutData's documentation.

Fixes the following warning:
Using an empty domain, fix the code. msgid: "Your names" msgid_plural:
"" msgctxt: "NAME OF TRANSLATORS"
Using an empty domain, fix the code. msgid: "Your emails" msgid_plural:
"" msgctxt: "EMAIL OF TRANSLATORS"


(cherry picked from commit 2cc5d5ac)
parent 336becd3
Pipeline #247390 passed with stage
in 1 minute and 4 seconds
......@@ -135,7 +135,7 @@ int main(int argc, char **argv)
about.setProductName("discover/discover");
about.setProgramLogo(app.windowIcon());
about.setTranslator(i18ndc(nullptr, "NAME OF TRANSLATORS", "Your names"), i18ndc(nullptr, "EMAIL OF TRANSLATORS", "Your emails"));
about.setTranslator(i18nc("NAME OF TRANSLATORS", "Your names"), i18nc("EMAIL OF TRANSLATORS", "Your emails"));
KAboutData::setApplicationData(about);
......
......@@ -44,7 +44,7 @@ int main(int argc, char **argv)
about.addAuthor(QStringLiteral("Aleix Pol Gonzalez"), {}, QStringLiteral("aleixpol@kde.org"));
about.setProductName("discover/discover");
about.setProgramLogo(app.windowIcon());
about.setTranslator(i18ndc(nullptr, "NAME OF TRANSLATORS", "Your names"), i18ndc(nullptr, "EMAIL OF TRANSLATORS", "Your emails"));
about.setTranslator(i18nc("NAME OF TRANSLATORS", "Your names"), i18nc("EMAIL OF TRANSLATORS", "Your emails"));
KAboutData::setApplicationData(about);
......
Supports Markdown
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