function _locale_batch_language_finished

Implements callback_batch_finished().

Finished callback of language addition locale import batch. Inform the user of translation files imported.

Related topics

1 string reference to '_locale_batch_language_finished'
locale_languages_predefined_form_submit in modules/locale/locale.admin.inc
Process the language addition form submission.

File

includes/locale.inc, line 2393

Code

function _locale_batch_language_finished($success, $results) {
    if ($success) {
        drupal_set_message(format_plural(count($results), 'One translation file imported for the enabled modules.', '@count translation files imported for the enabled modules.'));
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.