Implements hook_language_insert().
function locale_language_insert($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 new language.
_locale_invalidate_js($language->langcode);
}