[ZPT] Re: i18n in javascript
Dorneles Treméa
dorneles at x3ng.com.br
Wed Dec 3 22:52:01 EST 2003
Hi Santi,
> I have a question about the use of i18n in ZPT. Is there an easy way to
> translate, for instance, an "alert" message in javascript using TAL an
> ZPTInternationalizationSupport ?
what about something like:
<tal:block replace="structure string:<script>" />
alert(
'<tal:block i18n:translate="msg_id">Your alert message</tal:block>'
);
<tal:block replace="structure string:</script>" />
I know, I know, it's ugly as hell... but seems to work! ;-)
Regards,
--
Dorneles Treméa
Caxias do Sul - RS - Brasil
+55 54 9114 9312 - UIN: 2413568
X3ng Web Technology <http://www.x3ng.com.br>
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/IT d- s:->: a24 C+++ UBL++++$ P--- L++ E-- W+++
N++ o? K? w+ O M+ V-- PS+ PE- Y-- PGP++ t+ 5 X++ R+
tv+ b(++) DI+ D++ G+>+++ e++>++++ h---- r+++ y+++**
------END GEEK CODE BLOCK------
More information about the ZPT
mailing list