Drupal 6: how to make CCK default values translatable? -
in multilanguage drupal 6 website need make cck field default values translatable, i.e.
hello
- in english versionbonjour
- in french one
i cannot find text translation table, neither these values in variable table can use multilingual variables.
do know how have different default values in different languages?
when define cck field, can enter php code snippet override default value of field.
enter following there :
return array(0 => array('value' => t('hello')));
now access node add page cck field non-english version gets added translatable strings.
now you're able translate using "translate interface" menu (it might take visit "create" page of cck type first though). doesn't require modules in fact, basic d6 (and works in d5 , d7 well).
Comments
Post a Comment