I think you could do this by mapping the locale text of the language you
want to that of the default locale (en_GB/en_US) using a dataset. For
instance:
<dataset name="en_GB">
<messages>
<hello>Hello</hello>
</messages>
</dataset>
<dataset name="ja_JP">
<messages>
<hello>konnichiwa</hello>
</messages>
</dataset>
So in your app you can then do something like:
<text text="${'canvas.datasets.' + locale + 'messages/hello/text()'}"/>
This should work in theory but I haven't tested it yet. So I hope this
and Henry's link will lead you in the right direction.
Adeola.
Henry Minsky wrote:
> I had some simple ideas in this mail message last year
>
> http://www.openlaszlo.org/pipermail/laszlo-user/2005-August/001434.html
>
>
>
> On 4/27/06, *Alexey* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi!
>
> How do you deal with i18n in Laszlo?
>
> I am using rife/laszlo and send i18n strings (with error/warning
> messages) to
> laszlo in xml package. But how could I send xml package to laszlo
> lzx file on
> first access to it (if I need to localize all strings in lzx file)?
>
> Thank you!
>
> --
> С уважением,
> Alexey mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>
>
> _______________________________________________
> Laszlo-user mailing list
> [email protected] <mailto:[email protected]>
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>
>
>
>
> --
> Henry Minsky
> Software Architect
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Laszlo-user mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user