Bug 61596 - "xreflabel" attribute is ignored by xml2pot/split2po/po2xml
Summary: "xreflabel" attribute is ignored by xml2pot/split2po/po2xml
Status: CONFIRMED
Alias: None
Product: docs.kde.org
Classification: Websites
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Documentation Editorial Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-24 00:16 UTC by Anderson Lizardo
Modified: 2021-03-09 05:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anderson Lizardo 2003-07-24 00:16:34 UTC
Version:            (using KDE KDE 3.1.1a)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 3.2.1 
OS:          Linux

When using xml2pot tool (from kdesdk package, if compiled from sources), the "xreflabel" attribute from "sect1" tag is not added in the .pot file for translation. So, when later I use split2po and then po2xml to convert .po files to XML files, this attribute remains untranslated.

for example:
<sect1 id="ch01-introduction" xreflabel="Chapter 1 - Introduction">

"Chapter 1 - Introduction" cannot be translated because it is not on .po nor .pot file.

For reference, I'm using the above tools with DocBook XML V4.1.2.
Comment 1 Stephan Kulow 2004-01-12 16:04:12 UTC
Subject: Re:  "xreflabel" attribute is ignored by xml2pot/split2po/po2xml

On Tuesday 30 December 2003 14:19, Lauri Watts wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>      
> http://bugs.kde.org/show_bug.cgi?id=61596     
> lauri@kde.org changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>          AssignedTo|kde-doc-english@kde.org     |coolo@kde.org
Hmm, how many of such possibly translatable attributes are there?

Greetings, Stephan

Comment 2 Anderson Lizardo 2004-01-12 19:19:40 UTC
From http://docbook.org/tdg/en/html/docbook.html, I found three potential translatable attributes:

http://docbook.org/tdg/en/html/ref-elements.html#common.attributes : xreflabel
http://docbook.org/tdg/en/html/graphic.html : srccredit
http://docbook.org/tdg/en/html/glossdef.html : subject

Note that the srccredit attribute occurs not only in <graphic> tags, but also in many other media-related tags.
Comment 3 Stephan Kulow 2004-01-13 11:06:21 UTC
Thanks, I look into this somewhere later
Comment 4 Rich Johnson 2007-07-28 23:51:39 UTC
I know with Kubuntu documentation I do not use the xreflabel just because of 
this.

Phil or any EBN dev, do you think we can get this added to the EBN's list of 
checks performed against the documentation so we can go through and remove 
them?
Comment 5 Christoph Feck 2011-07-25 20:40:48 UTC
Since Stefan no longer maintains this, can someone else check if the bug is still valid?
Comment 6 Burkhard Lück 2011-07-26 05:38:00 UTC
"xreflabel" attribute from "sect1" tag is not extracted by xml2pot, the tag xreflabel is missing in kdesdk/poxml/parser.cpp.


But the kde documentation has no docbook using this tag currently, so it is a kind of non issue.
Comment 7 Justin Zobel 2021-03-09 05:38:51 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.