[Po4a-devel] XML: prevent some attributes from being translated

poy poy at 123gen.com
Sun Mar 8 18:24:13 UTC 2009


hi,

i have tried turning on the "foldattributes" option on our whole project, 
and it seems the generated .pot file sometimes has weird numbering regarding 
po4a-id attributes.

it seems that the po4a-id number isn't always reset to 0; if a translation 
has multiple foldable attributes, eg:
msgid "<span po4a-id=0>aaa</span> <span po4a-id=1>bbb</span> <span 
po4a-id=2>ccc</span>"
then on the next (totally unrelated, could even be in a separate file) 
translation, the po4a-id counter stays at 2, so i will get something like:
msgid "blah <a po4a-id=2>blah</a> <span po4a-id=3>blah</span> ..."
and etc.
as a result, by the end of the .pot file, i find things like:
msgid ""
"TLS can't be used because no certificate files set. You should set or "
"generate them properly in the <a po4a-id=78>Security certificates</a> 
page."

poy 




More information about the Po4a-devel mailing list