summaryrefslogtreecommitdiff
path: root/modules/locale/locale.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/locale/locale.module')
-rw-r--r--modules/locale/locale.module12
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index e5f952e25..8d826fd55 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -437,7 +437,7 @@ function locale_language_list($field = 'name', $all = FALSE) {
*/
function locale_system_update($components) {
include_once 'includes/locale.inc';
- if ($batch = locale_batch_system($components)) {
+ if ($batch = locale_batch_by_component($components)) {
batch_set($batch);
}
}
@@ -453,6 +453,16 @@ function _locale_batch_system_finished($success, $results) {
}
/**
+ * Finished callback of language addition locale import batch.
+ * Inform the user of translation files imported.
+ */
+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.'));
+ }
+}
+
+/**
* Perform interface translation import as a batch step.
*
* @param $filepath