W3cubDocs

/Drupal 8

function locale_translation_clear_status

locale_translation_clear_status()

Clear the translation status cache.

File

core/modules/locale/locale.module, line 1006
Enables the translation of the user interface to languages other than English.

Code

function locale_translation_clear_status() {
  \Drupal::state()->delete('locale.translation_status');
  \Drupal::state()->delete('locale.translation_last_checked');
}

© 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.module/function/locale_translation_clear_status/8.1.x