summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--i18n_forum/i18n_forum.module13
1 files changed, 12 insertions, 1 deletions
diff --git a/i18n_forum/i18n_forum.module b/i18n_forum/i18n_forum.module
index b76f1aa..446df20 100644
--- a/i18n_forum/i18n_forum.module
+++ b/i18n_forum/i18n_forum.module
@@ -7,10 +7,21 @@
* Internationalization (i18n) package.
*/
+/**
+ * Implements hook_help().
+ */
+function i18n_forum_help($path, $arg) {
+ if ($path == 'admin/structure/forum') {
+ $vid = variable_get('forum_nav_vocabulary', 0);
+ $vocabulary = taxonomy_vocabulary_load($vid);
+ $name = $vocabulary->machine_name;
+ return t('To translate the forum, <a href="@edit">edit and make it translatable</a>, then <a href="@translate">translate the forum</a> and <a href="@list">its containers and sub-forums</a> on the taxonomy administration page.', array('@edit' => url('admin/structure/taxonomy/' . $name . '/edit'), '@translate' => url('admin/structure/taxonomy/' . $name . '/translate'), '@list' => url('admin/structure/taxonomy/' . $name . '/list')));
+ }
+}
/**
* Implements hook_node_view().
- *
+ *
* Localize breadcrumb for forum nodes.
*/
function i18n_forum_node_view($node, $view_mode, $langcode) {