On Tue, Oct 19, 2010 at 10:07 AM, Denis Barbier <bouzim(a)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.
Just do document, here is the patch I've made, it fixes
po4a-gettextize but break po4a-translate
--- Xml.pm.orig 2010-10-19 10:13:21.000000000 -0200
+++ Xml.pm 2010-10-19 10:13:35.000000000 -0200
@@ -903,7 +903,7 @@
sub CDATA_extract {
my ($self,$remove)=(shift,shift);
- my ($eof, @tag) =
$self->get_string_until(']]>',{include=>1,unquoted=>0,remove=>$remove});
+ my ($eof, @tag) =
$self->get_string_until(']]>',{include=>0,unquoted=>0,remove=>$remove});
return ($eof, @tag);
}
--
Renato Botelho