function tagclouds_i18n_taxonomy_vocabulary_description in TagCloud 8
Same name and namespace in other branches
- 2.0.x tagclouds.module \tagclouds_i18n_taxonomy_vocabulary_description()
- 1.0.x tagclouds.module \tagclouds_i18n_taxonomy_vocabulary_description()
Get localized vocabulary description. Adapted from i18n_taxonomy_vocabulary_name(). Should moved to i18n, issue http://drupal.org/node/1704658.
File
- ./
tagclouds.module, line 52
Code
function tagclouds_i18n_taxonomy_vocabulary_description($vocabulary, $langcode = NULL) {
return i18n_object_langcode($vocabulary) ? $vocabulary->description : i18n_string([
'taxonomy',
'vocabulary',
$vocabulary->vid,
'description',
], $vocabulary->description, [
'langcode' => $langcode,
]);
}