function locale_language_update

Implements hook_language_update().

File

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

Code

function locale_language_update($language) {

  // @todo move these two cache clears out. See http://drupal.org/node/1293252
  // Changing the language settings impacts the interface.
  cache('page')
    ->deleteAll();

  // Force JavaScript translation file re-creation for the modified language.
  _locale_invalidate_js($language->langcode);
}