translation.variable.inc 961 B

12345678910111213
  1. <?php
  2. /**
  3. * @file
  4. * Variable API module. Definition for Drupal core variables
  5. */
  6. /**
  7. * Implements hook_variable_info_alter().
  8. */
  9. function translation_variable_info_alter(&$variables, $options) {
  10. $variables['language_content_type_[node_type]']['repeat']['options'][TRANSLATION_ENABLED] = t('Enabled, with translation', array(), $options);
  11. $variables['language_content_type_[node_type]']['description'] = t('Enable multilingual support for this content type. If enabled, a language selection field will be added to the editing form, allowing you to select from one of the <a href="!languages">enabled languages</a>. You can also turn on translation for this content type, which lets you have content translated to any of the enabled languages. If disabled, new posts are saved with the default language. Existing content will not be affected by changing this option.', array('!languages' => url('admin/config/regional/language', $options)), $options);
  12. }