function drush_l10n_update_refresh in Localization update 7.2
Same name and namespace in other branches
- 6 l10n_update.drush.inc \drush_l10n_update_refresh()
- 7 l10n_update.drush.inc \drush_l10n_update_refresh()
Callback for command l10n-update-refresh.
File
- ./
l10n_update.drush.inc, line 36 - Drush interface to l10n-update functionalities.
Code
function drush_l10n_update_refresh() {
module_load_include('compare.inc', 'l10n_update');
// 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.
l10n_update_flush_projects();
l10n_update_check_projects();
// Execute a batch if required. A batch is only used when remote files
// are checked.
if (batch_get()) {
drush_backend_batch_process();
}
}