locale_translation_manual_status()
Page callback: Checks for translation updates and displays the status.
Manually checks the translation status without the use of cron.
See also
locale_menu()
File
- core/modules/locale/locale.pages.inc, line 18
- Interface translation summary, editing and deletion user interfaces.
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | function locale_translation_manual_status() { module_load_include( 'compare.inc' , 'locale' ); // Check the translation status of all translatable projects in all languages. // First we clear the cached list of projects. Although not strictly // necessary, this is helpful in case the project list is out of sync. locale_translation_flush_projects(); locale_translation_check_projects(); // Execute a batch if required. A batch is only used when remote files // are checked. if (batch_get()) { return batch_process( 'admin/reports/translations' ); } return new RedirectResponse(\Drupal::url( 'locale.translate_status' , array (), array ( 'absolute' => TRUE))); } |
Please login to continue.