diff --git a/core/modules/node/content_types.inc b/core/modules/node/content_types.inc index f9dba7b..3ebc6dc 100644 --- a/core/modules/node/content_types.inc +++ b/core/modules/node/content_types.inc @@ -186,7 +186,7 @@ function node_type_form($form, &$form_state, $type = NULL) { ); if (module_exists('language')) { $languages = language_list(); - // @Todo use language_special_languages() if #1471432 is commited. + // @todo use language_special_languages() if #1471432 is comitted. $lang_options = array( LANGUAGE_NOT_SPECIFIED => t('Not specified'), LANGUAGE_NOT_APPLICABLE => t('Not applicable'), diff --git a/core/modules/translation/translation.module b/core/modules/translation/translation.module index da7e328..b994b88 100644 --- a/core/modules/translation/translation.module +++ b/core/modules/translation/translation.module @@ -130,13 +130,16 @@ function translation_form_node_type_form_alter(&$form, &$form_state) { } /** - * Checks if language is set to one of the special languages and language selector is not hidden, translation cannot be enabled. + * Checks if translation can be enabled. + * + * If language is set to one of the special languages + * and language selector is not hidden, translation cannot be enabled. */ function translation_node_type_language_translation_enabled_validate($element, &$form_state, $form) { - // @todo Change this to language_is_locked() when #1471432 is commited. + // @todo Change this to language_is_locked() when #1471432 is comitted. $locked_language = in_array($form_state['values']['node_type_language_default'], array(LANGUAGE_NOT_SPECIFIED, LANGUAGE_NOT_APPLICABLE, LANGUAGE_MULTIPLE)); if ($locked_language && $form_state['values']['node_type_language_hidden'] && $form_state['values']['node_type_language_translation_enabled']) { - // @todo use language_special_languages() if #1471432 is commited. + // @todo use language_special_languages() if #1471432 is comitted. form_set_error('node_type_language_translation_enabled', t('Translation is not supported if language is always one of: Not specified, Not applicable or Multiple languages')); } }