One way I see is to extend Mason syntax using the preprocess option of HTML::Mason::Compiler. Mason authors suggest instead to extend the compiler; there is an example of such method in chapter 6 of Embedding Perl in HTML with Mason.
On the other hand, I don't understand why you don't have separate pages for every language you need to display. Isn't it better to use Mason components and override portions of your pages locally? Or you can extend HTML::Mason::Resolver and make it search components in different paths for every language (refer to the aforementioned chapter 6 of the Mason book).
HTH, Valerio
In reply to Re: Multilingual Mason
by valdez
in thread Multilingual Mason
by crenz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |