function i18ncck_content_field_strings_alter in Internationalization 6
Translate widget's labels and descriptions.
File
- i18ncck/
i18ncck.module, line 75 - Internationalization (i18n) submodule: CCK.
Code
function i18ncck_content_field_strings_alter(&$field_strings, $content_type, $field_name) {
$field_strings['widget_label'] = i18nstrings('cck:field:' . $content_type . '-' . $field_name . ':widget_label', $field_strings['widget_label']);
if (!empty($field_strings['widget_description'])) {
$field_strings['widget_description'] = i18nstrings('cck:field:' . $content_type . '-' . $field_name . ':widget_description', $field_strings['widget_description']);
}
}