Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dasrecht/6742751 to your computer and use it in GitHub Desktop.
Save dasrecht/6742751 to your computer and use it in GitHub Desktop.
diff --git a/config_translation.module b/config_translation.module
index 3523a09..0f77503 100644
--- a/config_translation.module
+++ b/config_translation.module
@@ -17,11 +17,19 @@ function config_translation_help($path) {
case 'admin/help#config_translation':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
- $output .= '<p>' . t('The Configuration Translation module lets you translate configuration from all around your Drupal site. Views, your site name, contact module categories, vocabularies, menus, blocks, and so on are all stored with Drupal\'s unified configuration system and can be translated with this module. Content, such as nodes, taxonomy terms, custom blocks, and so on are translatable with the <em>Content translation</em> module in Drupal core, while the built-in user interface (such as registration forms, content submission and administration interfaces) are translated with the <em>Interface translation</em> module. Use these three modules effectively together to translate your whole site to different languages.') . '</p>';
+ $output .= '<p>' . t('The Configuration translation module allows configurations to be translated into different languages. Views, your site name, contact module categories, vocabularies, menus, blocks, and so on are all stored with Drupal\'s unified configuration system and can be translated with this module. Content, such as nodes, taxonomy terms, custom blocks, and so on are translatable with the <a href="https://drupal.org/project/translation"<em>Content translation</em></a> module in Drupal core, while the built-in user interface (such as registration forms, content submission and administration interfaces) are translated with the <a href="https://drupal.org/project/translation_interface"><em>Interface translation</em></a> module. Use these three modules effectively together to translate your whole site to different languages.') . '</p>';
+ $output .= '<h3>' . t('Uses') . '</h3>';
+ $output .= '<dl>';
+ $output .= '<dt>' . t('Translating content') . '</dt>';
+ $output .= '<dd>' . t('To translate content, select the <em>Translation</em> tab when viewing the configurations, select the language for which you wish to provide translations and then enter the content.') . '</dd>';
+ return $output;
+ case 'node/%/translate':
+ $output = '<p>' . t('Translations of a piece of content are managed with translation sets. Each translation set has one source post and any number of translations in any of the <a href="!languages">enabled languages</a>. All translations are tracked to be up to date or outdated based on whether the source post was modified significantly.', array('!languages' => url('admin/config/regional/language'))) . '</p>';
return $output;
case 'admin/config/regional/config-translation':
$output = '<p>' . t('This page lists all configuration items on your site which have translatable text, like your site name, role names, etc.') . '</p>';
+ $output .= '</dl>';
return $output;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment