Version: unspecified (using KDE 4.4.3) OS: Linux Most of KDE DocBooks contain information on date and release. For example (taken from kdebase-runtime/khelpcenter) <date>2010-07-18</date> <releaseinfo>&kde; 4.5</releaseinfo> As KDE translated in many languages, this information should be properly localized. Regretfully, xml2pot does not extract corresponding strings for translation if they are inside "bookinfo" or "articleinfo" tags. Examples: Bookinfo case: kdebase/runtime/doc/khelpcenter/index.docbook Articleinfo case: kdebase/runtime/doc/kcontrol/attica/index.docbook Reproducible: Always Steps to Reproduce: Execute for the above-mentioned docbooks (poxml package should be installed first): xml2pot index.docbook > test.pot Actual Results: Date and releaseinfo do not extracted in POT, thus are untranslatable. Expected Results: Date and releaseinfo extracted for translation. xml2pot is used in KDE translation workflow, so all official translated KDE docs are shipped with untranslated date and release information.
I just had a similar problem to translate a document (outside KDE) for which I needed support of "titleabbrev", "date", "authorinitials" and "holder" Docbook tags. I successfully patched poxml to achieve this. This patch, with addition of "releaseinfo" tag support, is following.
Created attachment 50777 [details] adds some tags support to poxml Tested with KDE 4.4.5 on Debian Sid.
SVN commit 1166068 by aacid: New tags to extract, patch by Bernard Massot BUG: 247418 FIXED-IN: 4.5.1 M +1 -0 parser.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1166068