perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunnar Wolf <gw...@gwolf.org>
Subject I18N and non-literals
Date Wed, 09 Aug 2006 21:09:02 GMT
While building an I18N-able site, I noticed Embperl's [= =] facility
seems to work only for literals, and does not work with data generated
by expression - this means:

[= string =]

will be properly translated to whatever message I defined for
'string', but

[$ foreach $var qw(string chain thing) $]
[= $var =]
[$ endforeach $]

will only appear as:

$var
$var
$var

Why is it so? Is there a way I can change this setting? I know I can
call [+ $req_rec->gettext($var) +] instead, but it loses all the
beauty ;-)

Greetings,

-- 
Gunnar Wolf - gwolf@gwolf.org - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message