From poy at 123gen.com Sun Mar 8 19:08:18 2009 Content-Type: multipart/mixed; boundary="===============8023247081520366984==" MIME-Version: 1.0 From: poy To: devel at lists.po4a.org Subject: Re: [Po4a-devel] XML: prevent some attributes from being translated Date: Sun, 08 Mar 2009 20:08:25 +0100 Message-ID: <8EF9EF516C484544887C30095F966F17@ZOUZOU> In-Reply-To: E9F410002D16472E8BF8C5FAA602F99A@ZOUZOU --===============8023247081520366984== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----- Original Message ----- = From: "poy" To: Sent: Sunday, March 08, 2009 7:24 PM Subject: Re: [Po4a-devel] XML: prevent some attributes from being translated > 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 "aaa bbb po4a-id=3D2>ccc" > 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 blah blah ..." > 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 Security certificates > page." oh, and translation of texts containing these wrongly-numbered ids doesn't = work. here's a test-case:

abc link! def link2 x span1 b a3= = span2bbbbbb

abcd sss

the 1st paragraph is ok in the .pot file, but the 2nd appears as: msgid "abcd sss" instead of: msgid "abcd sss" hence the 2nd paragraph (and all subsequent translations that will contain = a = po4a-id) is impossible to translate. poy = --===============8023247081520366984==--