Thursday 26 February 2009 9:38:08 am
The options of an ezselection is not translatable.
How do you ezgurus guys handle this problem ?
The easiest solution i found in my case was to use the translations.ts files for each option label and then override the ezselection.tpl with this code :
{let selected_id_array=$attribute.content}
{section var=Options loop=$attribute.class_content.options}
{section-exclude match=$selected_id_array|contains( $Options.item.id )|not}
{$Options.item.name|wash( xhtml )|i18n("options")}{delimiter}<br/>{/delimiter}{/section}
{/let}
(added i18n command to handle the translation)
Smarter way anyone ? Any ezselection translatable datatype i haven't seen in the contribs ?
Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr
|