drupal_set_message(t('The language %language has been created and can now be used. More information is available on the <a href="@locale-help">help screen</a>.',array('%language'=>t($form_state['values']['name']),'@locale-help'=>url('admin/help/locale'))));
}
else{
// Predefined language selection.
include_onceDRUPAL_ROOT.'/includes/standard.inc';
$predefined=standard_language_list();
$language=(object)array(
'language'=>$langcode,
);
locale_language_save($language);
drupal_set_message(t('The language %language has been created and can now be used. More information is available on the <a href="@locale-help">help screen</a>.',array('%language'=>t($predefined[$langcode][0]),'@locale-help'=>url('admin/help/locale'))));
}
// Custom language form.
$language=(object)array(
'language'=>$langcode,
'name'=>$form_state['values']['name'],
'native'=>$form_state['values']['native'],
'direction'=>$form_state['values']['direction'],
);
locale_language_save($language);
drupal_set_message(t('The language %language has been created and can now be used. More information is available on the <a href="@locale-help">help screen</a>.',array('%language'=>t($form_state['values']['name']),'@locale-help'=>url('admin/help/locale'))));
drupal_set_message(t('The language %language has been created and can now be used. More information is available on the <a href="@locale-help">help screen</a>.',array('%language'=>t($predefined[$langcode][0]),'@locale-help'=>url('admin/help/locale'))));
@@ -42,7 +42,7 @@ function locale_help($path, $arg) {
return$output;
case'admin/config/regional/language/add':
return'<p>'.t('Add a language to be supported by your site. If your desired language is not available in the <em>Language name</em> drop-down, click <em>Custom language</em> and provide a language code and other details manually. When providing a language code manually, be sure to enter a standardized language code, since this code may be used by browsers to determine an appropriate display language.').'</p>';
return'<p>'.t('Add a language to be supported by your site. If your desired language is not available, pick <em>Custom language...</em> at the end and provide a language code and other details manually.').'</p>';
case'admin/config/regional/language/configure':
$output='<p>'.t("Define how to decide which language is used to display page elements (primarily text provided by Drupal and modules, such as field labels and help text). This decision is made by evaluating a series of detection methods for languages; the first detection method that gets a result will determine which language is used for that type of text. Define the order of evaluation of language detection methods on this page.").'</p>';