function locale_translation_manual_status

Page callback: Checks for translation updates and displays the translations status.

Manually checks the translation status without the use of cron.

See also

locale_menu()

1 string reference to 'locale_translation_manual_status'
locale_menu in drupal/core/modules/locale/locale.module
Implements hook_menu().

File

drupal/core/modules/locale/locale.pages.inc, line 455
Interface translation summary, editing and deletion user interfaces.

Code

function locale_translation_manual_status() {
  module_load_include('compare.inc', 'locale');
  locale_translation_flush_projects();
  $projects = locale_translation_get_projects();
  locale_translation_check_projects($projects);

  // Execute a batch if required.
  if (batch_get()) {
    batch_process('admin/reports/translations');
  }
  drupal_goto('admin/reports/translations');
}