[SMS App] Add i18n application domain for messaging app
## Summary Add KLocalizedString::setApplicationDomain for kdeconnect-sms Per the programmer guide, this must be done, otherwise translations will not happen. https://api.kde.org/frameworks/ki18n/html/prg_guide.html ## Test Plan ### Before: kdeconnect-sms would spew errors like `kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "%1" msgid_plural: "" msgctxt: ""` (Translations still seem to work, though) ### After: No more ki18n errors, translation works.
This commit is contained in:
parent
5b716dde02
commit
b76fe488b9
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ int main(int argc, char *argv[])
|
|||
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
QApplication app(argc, argv);
|
||||
KLocalizedString::setApplicationDomain("kdeconnect-sms");
|
||||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect")));
|
||||
KAboutData aboutData(QStringLiteral("kdeconnect.sms"),
|
||||
i18n("KDE Connect SMS"),
|
||||
|
|
Loading…
Reference in a new issue