0|No... do this instead inside the PHP code box:
1|Yes
return array(0=>t('No'), 1=>t('Yes'));
This way, you get the option texts indexed by the translation mechanism and allows it to pick the right labels for your radios/checkboxes when your user switches languages.We had to work on lots of large CCK content types for a site with English, French and Spanish content and luckily we tested everything with a small form first. Saved us a huge amount of going back and redoing the boring job of reformatting the allowed values list of about 170 multiple-choice questions... which would have been a real pain in the derrier!
0 comments:
Post a Comment