Bug 247418

Summary: xml2pot does not extract date and releaseinfo for translation
Product: [Websites] docs.kde.org Reporter: Yuri Chornoivan <yurchor>
Component: generalAssignee: Documentation Editorial Team <kde-doc-english>
Status: RESOLVED FIXED    
Severity: normal CC: bernard, kde-docbook
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 4.5.1
Sentry Crash Report:
Attachments: adds some tags support to poxml

Description Yuri Chornoivan 2010-08-11 20:45:19 UTC
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.
Comment 1 Bernard Massot 2010-08-20 15:33:39 UTC
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.
Comment 2 Bernard Massot 2010-08-20 15:35:16 UTC
Created attachment 50777 [details]
adds some tags support to poxml

Tested with KDE 4.4.5 on Debian Sid.
Comment 3 Albert Astals Cid 2010-08-20 20:22:39 UTC
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