Add messages.sh and set domain for i18n call
Messages.sh
0 → 100644
-
Developer
Hi. What is the motivation to use
i18ndc()
instead of setting things in the CMakeLists.txt by usingadd_definitions(-DTRANSLATION_DOMAIN=\"kpeoplevcard\")
The latter is the usual approach, using the
i18n*d()
calls only would be done if really needed. -
Author Developer
IIRC -DTRANSLATION_DOMAIN doesn't work for plugins? I may be wrong though
-
Developer
It works for compiled code. As all it does is to predefine the domain argument to any i18n() calls, so one does not have to do it manually.
Things fail when the call is done at runtime, like in QML.
-
Developer
See the magic happen here :) -> https://invent.kde.org/frameworks/ki18n/-/blob/master/src/klocalizedstring.h#L2330
Please register or sign in to comment