5 Feb 22:48
Petal problem
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
(Continue reading)
RSS Feed