function i18nstrings_help in Internationalization 6
Implementation of hook_help().
File
- i18nstrings/
i18nstrings.module, line 57 - Internationalization (i18n) package - translatable strings.
Code
function i18nstrings_help($path, $arg) {
switch ($path) {
case 'admin/help#i18nstrings':
$output = '<p>' . t('This module adds support for other modules to translate user defined strings. Depending on which modules you have enabled that use this feature you may see different text groups to translate.') . '<p>';
$output .= '<p>' . t('This works differently to Drupal standard localization system: The strings will be translated from the default language (which may not be English), so changing the default language may cause all these translations to be broken.') . '</p>';
$output .= '<ul>';
$output .= '<li>' . t('To search and translate strings, use the <a href="@translate-interface">translation interface</a> pages.', array(
'@translate-interface' => url('admin/build/translate'),
)) . '</li>';
$output .= '<li>' . t('If you are missing strings to translate, use the <a href="@refresh-strings">refresh strings</a> page.', array(
'@refresh-strings' => url('admin/build/translate/refresh'),
)) . '</li>';
$output .= '</ul>';
$output .= '<p>' . t('Read more on the <em>Internationalization handbook</em>: <a href="http://drupal.org/node/313293">Translating user defined strings</a>.') . '</p>';
return $output;
case 'admin/build/translate/refresh':
$output = '<p>' . t('On this page you can refresh and update values for user defined strings.') . '</p>';
$output .= '<ul>';
$output .= '<li>' . t('Use the refresh option when you are missing strings to translate for a given text group. All the strings will be re-created keeping existing translations.') . '</li>';
$output .= '<li>' . t('Use the update option when some of the strings had been previously translated with the localization system, but the translations are not showing up for the configurable strings.') . '</li>';
$output .= '</ul>';
$output .= '<p>' . t('To search and translate strings, use the <a href="@translate-interface">translation interface</a> pages.', array(
'@translate-interface' => url('admin/build/translate'),
)) . '</p>';
$output .= '<p>' . t('<strong>Important:</strong> To configure which Input formats are safe for translation, visit the <a href="@configure-strings">configure strings</a> page before refreshing your strings.', array(
'@configure-strings' => url('admin/settings/language/configure/strings'),
)) . '</p>';
return $output;
case 'admin/settings/language':
$output = '<p>' . t('<strong>Warning</strong>: Changing the default language may have unwanted effects on string translations. Read more about <a href="@i18nstrings-help">String translation</a>', array(
'@i18nstrings-help' => url('admin/help/i18nstrings'),
)) . '</p>';
return $output;
case 'admin/settings/language/configure/strings':
$output = '<p>' . t('When translating user defined strings that have an Input format associated, translators will be able to edit the text before it is filtered which may be a security risk for some filters. An obvious example is when using the PHP filter but other filters may also be dangerous.') . '</p>';
$output .= '<p>' . t('As a general rule <strong>do not allow any filtered text to be translated unless the translators already have access to that Input format</strong>. However if you are doing all your translations through this site\'s translation UI or the Localization client, and never importing translations for other textgroups than <i>default</i>, filter access will be checked for translators on every translation page.') . '</p>';
$output .= '<p>' . t('<strong>Important:</strong> After disallowing some Input format, use the <a href="@refresh-strings">refresh strings</a> page so forbidden strings are deleted and not allowed anymore for translators.', array(
'@refresh-strings' => url('admin/build/translate/refresh'),
)) . '</p>';
return $output;
case 'admin/settings/filters':
return '<p>' . t('After updating your Input formats do not forget to review the list of formats allowed for string translations on the <a href="@configure-strings">configure translatable strings</a> page.', array(
'@configure-strings' => url('admin/settings/language/configure/strings'),
)) . '</p>';
}
}