[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] Default keywords for xgettext with --kde

From: Chusslove Illich
Subject: [bug-gettext] Default keywords for xgettext with --kde
Date: Sat, 9 May 2015 17:51:17 +0200
User-agent: KMail/1.13.7 (Linux/3.16.0-4-amd64; KDE/4.14.2; x86_64; ; )


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

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 (Часлав Илић)

Attachment: xgettext-kde-format-default-keywords-01.diff
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]