i18ntaxonomy_help($section, $arg)
contributions/i18n/i18ntaxonomy/i18ntaxonomy.module, line 31
Implementation of hook_help().
<?php
function i18ntaxonomy_help($section, $arg) {
switch ($section) {
case 'admin/help#i18ntaxonomy' :
$output = '<p>'.t('This module adds support for for multilingual taxonomy. You can set up multilingual options for each vocabulary:').'</p>';
$output .= '<ul>';
$output .= '<li>'.t('A language can be assigned globaly for a vocabulary').'</li>';
$output .= '<li>'.t('Different terms for each language with translation relationships.').'</li>';
$output .= '<li>'.t('Terms can be common to all languages but may be localized.').'</li>';
$output .= '</ul>';
$output .= '<p>'. t('For more information please read the <a href="@i18n">on-line help pages</a>.', array('@i18n' =>'http://drupal.org/node/31631')) .'</p>';
return $output;
case 'admin/settings/i18n':
$output = '<ul>';
$output .= '<li>'.t('To set up multilingual options for vocabularies go to !configure_taxonomy', array('!configure_taxonomy' => l(t('Taxonomy configuration page'), 'admin/content/taxonomy'))).'</li>';
$output . '</ul>';
return $output;
case 'admin/content/taxonomy/%':
$vocabulary = taxonomy_vocabulary_load($arg[3]);
switch (i18ntaxonomy_vocabulary($vocabulary->vid)) {
case I18N_TAXONOMY_LOCALIZE:
return '<p>'. t('%capital_name is a localizable vocabulary. You will be able to translate term names and descriptions using the localization interface.', array('%capital_name' => drupal_ucfirst($vocabulary->name), '%name' => $vocabulary->name)) .'</p>';
case I18N_TAXONOMY_LANGUAGE:
return '<p>'. t('%capital_name is a vocabulary with a fixed language. All the terms in this vocabulary will have %language language.', array('%capital_name' => drupal_ucfirst($vocabulary->name), '%name' => $vocabulary->name, '%language' => i18n_language_property($vocabulary->language, 'name'))) .'</p>';
case I18N_TAXONOMY_TRANSLATE:
return '<p>'. t('%capital_name is a full multilingual vocabulary. You will be able to set a language for each term and create translation relationships.', array('%capital_name' => drupal_ucfirst($vocabulary->name))) .'</p>';
}
}
}
?>