[Po4a-devel] CDATA end sequence added to msgid
Renato Botelho
rbgarga at gmail.com
Tue Oct 19 12:12:39 UTC 2010
On Tue, Oct 19, 2010 at 10:07 AM, Denis Barbier <bouzim at gmail.com> wrote:
> On 2010/10/19 Renato Botelho wrote:
>> Hello guys,
>>
>> First, i would like to congrats developers for this fantastic
>> tool.
>>
>> I've started using po4a few weeks ago, and yesterday i had
>> this problem. After generate a .po file with po4a-gettextize
>> I realized it added the CDATA end sequence ']]' to msgid.
>>
>> Is it an expected behaviour?
>
> Hello Renato,
>
> I agree that this behaviour has to be fixed.
> Here is a patch.
I tried this change before open ticket, it has a problem
because it understand the line that just contain a string
like this:
]]>
as a new msgid.
I also tried to change include=0 on get_string_until()
call inside CDATA_extract, and it worked better. But
it's not enough because after changing this
po4a-translate didn't translate this string anymore.
I think the change is a bit more complex than this, but
I don't know the code enough yet to implement it right
now.
Thanks anyway
--
Renato Botelho
More information about the Po4a-devel
mailing list