> The fast and simple solution I found, was having a component which set a > global variable called $Lang. And then inside the components or pages or > whatever I define the sections that should appear on the different > languages as: > > % if ($Lang eq 'ES') { > ... > % } else { > ... > % } > > This way I don't have that much components around. And if something is not > clean enough I put it in another subcomponent or component, or even module > and call it from the right place... only an idea... > > Regards, > > Florian >
Using if() {} else {} is an ugly, ugly solution. Especially if you're going to have multiple languages, or want the ability to add new languages later. It's also much more prone to errors - missed closing braces etc. - then other methods. Baldvins quite right in that my earlier solution wasn't particularly good; you don't want to duplicate any work changing layout for each language you have. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users