locale_translation_status_delete_languages($langcodes)
Delete language entries from the status cache.
Parameters
array $langcodes: Language code(s) to be deleted from the cache.
File
- core/modules/locale/locale.module, line 973
- Enables the translation of the user interface to languages other than English.
Code
1 2 3 4 5 6 7 8 9 10 11 12 | function locale_translation_status_delete_languages( $langcodes ) { if ( $status = locale_translation_get_status()) { foreach ( $status as $project => $languages ) { foreach ( $languages as $langcode => $source ) { if (in_array( $langcode , $langcodes )) { unset( $status [ $project ][ $langcode ]); } } } \Drupal::state()->set( 'locale.translation_status' , $status ); } } |
Please login to continue.