You are here

function i18ncck_content_fieldgroup_strings_alter in Internationalization 6

Translate fieldgroup labels and descriptions.

File

i18ncck/i18ncck.module, line 94
Internationalization (i18n) submodule: CCK.

Code

function i18ncck_content_fieldgroup_strings_alter(&$group_strings, $content_type, $group_name) {
  $group_strings['label'] = i18nstrings('cck:fieldgroup:' . $content_type . '-' . $group_name . ':label', $group_strings['label']);
  if (!empty($group_strings['form_description'])) {
    $group_strings['form_description'] = i18nstrings('cck:fieldgroup:' . $content_type . '-' . $group_name . ':form_description', $group_strings['form_description']);
  }
  if (!empty($group_strings['display_description'])) {
    $group_strings['display_description'] = i18nstrings('cck:fieldgroup:' . $content_type . '-' . $group_name . ':display_description', $group_strings['display_description']);
  }
}