diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-09 11:51:54 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-09 11:51:54 +0000 |
commit | 6ab877faf12c9760be3cefa79c2075c9dbdfcf49 (patch) | |
tree | c79e2408d2f1a8ca746f6dd3fdcb5650ed885a4a /modules/translation/translation.module | |
parent | 8ec14386b896b5bc8614ad7b0950578e41b66342 (diff) | |
download | brdo-6ab877faf12c9760be3cefa79c2075c9dbdfcf49.tar.gz brdo-6ab877faf12c9760be3cefa79c2075c9dbdfcf49.tar.bz2 |
#206021 by dropcube and myself: language content type settings were not properly namespaced
Diffstat (limited to 'modules/translation/translation.module')
-rw-r--r-- | modules/translation/translation.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/translation/translation.module b/modules/translation/translation.module index 6196f8e5b..29ab4f117 100644 --- a/modules/translation/translation.module +++ b/modules/translation/translation.module @@ -99,9 +99,9 @@ function translation_perm() { function translation_form_alter(&$form, $form_state, $form_id) { if ($form_id == 'node_type_form') { // Add translation option to content type form. - $form['workflow']['language']['#options'][TRANSLATION_ENABLED] = t('Enabled, with translation'); + $form['workflow']['language_content_type']['#options'][TRANSLATION_ENABLED] = t('Enabled, with translation'); // Description based on text from locale.module. - $form['workflow']['language']['#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/settings/language'))); + $form['workflow']['language_content_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/settings/language'))); } elseif (isset($form['#id']) && $form['#id'] == 'node-form' && translation_supported_type($form['#node']->type)) { $node = $form['#node']; @@ -294,7 +294,7 @@ function translation_node_get_translations($tnid) { * Boolean value. */ function translation_supported_type($type) { - return variable_get('language_'. $type, 0) == TRANSLATION_ENABLED; + return variable_get('language_content_type_'. $type, 0) == TRANSLATION_ENABLED; } /** |