function locale_translation_manual_status

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

Manually checks the translation status without the use of cron.

Deprecated

in drupal:8.5.0 and is removed from drupal:9.0.0. It is unused by Drupal core. Duplicate this function in your own extension if you need its behavior.

See also

https://www.drupal.org/node/2931188

1 call to locale_translation_manual_status()
LocaleDeprecationsTest::testLocaleTranslationManualStatusDeprecation in core/modules/locale/tests/src/Kernel/LocaleDeprecationsTest.php
@expectedDeprecation locale_translation_manual_status() is deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. It is unused by Drupal core. Duplicate this function in your own extension if you need its behavior.

File

core/modules/locale/locale.pages.inc, line 23

Code

function locale_translation_manual_status() {
    @trigger_error('locale_translation_manual_status() is deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. It is unused by Drupal core. Duplicate this function in your own extension if you need its behavior.', E_USER_DEPRECATED);
    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(Url::fromRoute('locale.translate_status', [], [
        'absolute' => TRUE,
    ])->toString());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.