summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/locale.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/locale.inc b/includes/locale.inc
index 48b5dbc5e..a5e651aa7 100644
--- a/includes/locale.inc
+++ b/includes/locale.inc
@@ -379,6 +379,9 @@ function locale_add_language($langcode, $name = NULL, $native = NULL, $direction
variable_set('language_count', variable_get('language_count', 1) + 1);
}
+ // Kill the static cache in language_list().
+ drupal_static_reset('language_list');
+
// Force JavaScript translation file creation for the newly added language.
_locale_invalidate_js($langcode);