function i18n_taxonomy_vocabulary_name in Internationalization 7
Get localized vocabulary name, unfiltered.
4 calls to i18n_taxonomy_vocabulary_name()
- i18n_forum_node_view in i18n_forum/
i18n_forum.module - Implements hook_node_view().
- i18n_forum_preprocess_forums in i18n_forum/
i18n_forum.module - Translate forum page.
- i18n_taxonomy_form_all_localize in i18n_taxonomy/
i18n_taxonomy.module - Localize a taxonomy_form_all() kind of control
- i18n_taxonomy_tokens in i18n_taxonomy/
i18n_taxonomy.tokens.inc - Implements hook_tokens().
File
- i18n_taxonomy/
i18n_taxonomy.module, line 519 - i18n taxonomy module
Code
function i18n_taxonomy_vocabulary_name($vocabulary, $langcode = NULL) {
return i18n_object_langcode($vocabulary) ? $vocabulary->name : i18n_string(array(
'taxonomy',
'vocabulary',
$vocabulary->vid,
'name',
), $vocabulary->name, array(
'langcode' => $langcode,
'sanitize' => FALSE,
));
}