KLocalizedString: Using an empty domain, fix the code

Jasem Mutlaq mutlaqja at ikarustech.com
Mon Dec 9 04:23:15 GMT 2024


Hello,

In KStars previous release, we migrated away from I18N_NOOP and used ki18n.
With KStars 3.7.3 release, we don't see errors about using an empty domain
and our users were able to switch languages successfully in KStars.

With our latest release, our users alerted us that switching language no
longer works. The output is filled with these messages:

kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid:
"unnamed" msgid_plural: "" msgctxt: ""
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid:
"unnamed object" msgid_plural: "" msgctxt: ""
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid:
"star" msgid_plural: "" msgctxt: ""
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid:
"unnamed" msgid_plural: "" msgctxt:

The domain is set correctly in main.cpp

So what did change in KDE Frameworks that would have caused this?

The code for the above error messages is in here (among other places):

https://invent.kde.org/education/kstars/-/blob/master/kstars/skyobjects/skyobject.h?ref_type=heads#L22

Any ideas what's going on?
--
Best Regards,
Jasem Mutlaq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-devel/attachments/20241209/3a184b74/attachment.htm>


More information about the kde-devel mailing list