From 6ab877faf12c9760be3cefa79c2075c9dbdfcf49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 9 Jan 2008 11:51:54 +0000 Subject: #206021 by dropcube and myself: language content type settings were not properly namespaced --- modules/translation/translation.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/translation/translation.module') 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 enabled languages. 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 enabled languages. 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; } /** -- cgit v1.2.3