Hi,
Recently xgettext --kde was updated to recognize the difference between KDE
plain text (kde-format) and markup formats (kde-kuit-format), and msgfmt to
even validate markup. (Thanks again, Daiki!) But, to properly extract
messages from a KDE source, the user has to add many --keyword and --flag
options (20-40 each). This array of options can of course be documented for
verbatim copying, or tucked away inside the build system, nevertheless I
argued it made sense to automatically recognize default KDE keywords and
flags when --kde option was present. Now I attach an attempted patch to do
this.
I was mostly struggling with how to trigger addition of KDE keywords. In the
end I came up with activate_additional_keywords_kde function, but I'm not
sure if that is elegant enough.
--
Chusslove Illich (Часлав Илић)