commit 41b651278f1841802c7a31ddeeb982e7696e9e61 Author: Erik Stielstra Date: Mon Jun 24 23:15:36 2013 +0100 #41 diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module index 0c6ecb6..85d2af6 100644 --- a/core/modules/locale/locale.module +++ b/core/modules/locale/locale.module @@ -424,10 +424,15 @@ function locale_themes_disabled($themes) { /** * Implements hook_cron(). + * + * @see drupal_cron_run() + * @see locale_queue_info() */ function locale_cron() { // Update translations only when an update frequency was set by the admin // and a translatable language was set. + // Update tasks are added to the queue here but processed by Drupal's cron + // using the cron worker defined in locale_queue_info(). if ($frequency = config('locale.settings')->get('translation.update_interval_days') && locale_translatable_language_list()) { module_load_include('translation.inc', 'locale'); locale_cron_fill_queue();