[Petal] Petal problem

Crissi crissi99 at gmx.de
Sat Feb 5 21:48:08 GMT 2005


Hello list,

I wrote a small program which use Petal. It convertes  a file with given 
language code to a new file which is translated.

But it fails on a html file which is correct xml and i could not find a 
mistake for use of Petal. It fails only on that file other files will be 
processed successfully.

I found the reason, the translated text is:
-- snip --
(for example: ${1}) 
-- snap --


I think this is a bug. If yes, could someone fix it?


the output is:

 ./create_localized_html.pl de_DE /home/crissi/testout 
i18n_with_tal_and_perl.html i18n_with_tal_and_perl.html
[PETAL ERROR] bad syntax for Petal::Hash::Var: 1 ($path) 
at /usr/local/share/perl/5.8.4/Petal/Hash/Var.pm line 38
        Petal::Hash::Var::process('Petal::Hash::Var', 
'Petal::Hash=HASH(0x845ee10)', 1) called 
at /usr/local/share/perl/5.8.4/Petal/Hash.pm line 186
        Petal::Hash::fetch('Petal::Hash=HASH(0x845ee10)', 1) called 
at /usr/local/share/perl/5.8.4/Petal/Hash.pm line 167
        Petal::Hash::__FETCH('Petal::Hash=HASH(0x845ee10)', 1) called 
at /usr/local/share/perl/5.8.4/Petal/Hash.pm line 117
        Petal::Hash::get('Petal::Hash=HASH(0x845ee10)', 1) called 
at /usr/local/share/perl/5.8.4/Petal/Hash.pm line 129
        Petal::Hash::get_encoded('Petal::Hash=HASH(0x845ee10)', 1) called at 
(eval 27) line 9
        Petal::__ANON__('Petal::Hash=HASH(0x845ee10)') called 
at /usr/local/share/perl/5.8.4/Petal.pm line 370
        eval {...} called at /usr/local/share/perl/5.8.4/Petal.pm line 361
        Petal::process('Petal=HASH(0x814cd28)') called 
at ./create_localized_html.pl line 33
. Debug info written in /tmp/petal_debug.10859.1107636282.koptmedqsb. 
at /usr/local/share/perl/5.8.4/Petal.pm line 473.
crissi at crissi:~/i18n_html_tal$ 
less /tmp/petal_debug.10859.1107636282.koptmedqsb


greetings

Christoph


More information about the Petal mailing list