locale_translation_check_projects($projects = array(), $langcodes = array())
Check for the latest release of project translations.
@todo Return batch or NULL.
array $projects: Array of project names to check. Defaults to all translatable projects.
string $langcodes: Array of language codes. Defaults to all translatable languages.
array Available sources indexed by project and language.
function locale_translation_check_projects($projects = array(), $langcodes = array()) { if (locale_translation_use_remote_source()) { // Retrieve the status of both remote and local translation sources by // using a batch process. locale_translation_check_projects_batch($projects, $langcodes); } else { // Retrieve and save the status of local translations only. locale_translation_check_projects_local($projects, $langcodes); \Drupal::state()->set('locale.translation_last_checked', REQUEST_TIME); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!locale!locale.compare.inc/function/locale_translation_check_projects/8.1.x