1 locale.module | locale_form_language_admin_add_form_alter_submit($form, $form_state) |
Set a batch for newly added language.
File
- core/
modules/ locale/ locale.module, line 990 - Add language handling functionality and enables the translation of the user interface to languages other than English.
Code
function locale_form_language_admin_add_form_alter_submit($form, $form_state) {
if (empty($form_state['values']['predefined_langcode']) || $form_state['values']['predefined_langcode'] == 'custom') {
$langcode = $form_state['values']['langcode'];
}
else {
$langcode = $form_state['values']['predefined_langcode'];
}
include_once backdrop_get_path('module', 'locale') . '/locale.bulk.inc';
locale_translate_add_language_set_batch($langcode);
}