Red Hat Bugzilla – Bug 554230
No translated text replacement when <para> tag has attribute "revision"
Last modified: 2010-11-23 23:16:35 EST
Problem occurs when building translations.
Translated text is not replacing en-US text when the <para> tag has a revision attribute.
Example: <para revision="1">
This is valid under the Docbook spec:
Version-Release number of selected component (if applicable): Fedora 11
How reproducible: always
Created attachment 385295 [details]
Sample of proposed change
Hi Richard, the current code sets the width to 60 and will be pushed out from there for individual lines greater than 60. Thus you will get a staggered layout if lines are variably above 60.
I'm thinking of changing this to make the default width 40, but if any line is greater than 36 it will change to maximum line with + 4.
This isn't full support for LineColumn, but it's something that I can get in the next version. Full support for LineColumn will take longer to implement.
oops, wrong bug obviously :(
The text generated by the XML parser generates extra text if a tag contains attributes, this caused the string match to fail. Since the attribute content can not be stored in the PO file, and it probably wouldn't be useful for translation work flow anyway, I removed the attributes from the comparison string.
Note that the attributes will be present in the translated XML and thus will affect the XSLT operations as expected.
publican-1.4-1.fc12 has been submitted as an update for Fedora 12.
publican-1.4-1.fc11 has been submitted as an update for Fedora 11.
publican-1.4-1.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
publican-1.4-1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.