Bug 247418 - xml2pot does not extract date and releaseinfo for translation
Summary: xml2pot does not extract date and releaseinfo for translation
Status: RESOLVED FIXED
Alias: None
Product: docs.kde.org
Classification: Websites
Component: general (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Documentation Editorial Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-11 20:45 UTC by Yuri Chornoivan
Modified: 2010-08-20 20:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.5.1


Attachments
adds some tags support to poxml (684 bytes, patch)
2010-08-20 15:35 UTC, Bernard Massot
Details

Note You need to log in before you can comment on or make changes to this bug.
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