function globallink_translation_taxonomy_options_list in GlobalLink Connect for Drupal 7.7
Get list of translation modes.
1 call to globallink_translation_taxonomy_options_list()
- globallink_translation_taxonomy_options in ./
globallink_settings.inc - Get list of translation modes.
File
- ./
globallink_settings.inc, line 1237
Code
function globallink_translation_taxonomy_options_list($replacements = array(), $options = array()) {
$entity_version = system_get_info('module', 'entity_translation');
$list = array(
I18N_MODE_LOCALIZE => t('Localize. @item_name_multiple_capitalized are common for all languages, but their name and description may be localized.', $replacements),
I18N_MODE_TRANSLATE => t('Translate. Different @item_name_multiple will be allowed for each language and they can be translated.', $replacements),
I18N_MODE_LANGUAGE => t('Fixed Language. @item_name_multiple_capitalized will have a global language and they will only show up for pages in that language.', $replacements),
);
if ($entity_version['version'] !== '7.x-1.0-beta5') {
$list[I18N_MODE_ENTITY_TRANSLATION] = t('Field translation. Term fields will be translated through the <a href="!url">Entity translation</a> module.', $replacements);
}
if ($options) {
foreach (array_keys($list) as $key) {
if (!in_array($key, $options, TRUE)) {
unset($list[$key]);
}
}
}
return $list;
}