summaryrefslogtreecommitdiff
path: root/modules/user/helpers/user_event.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/helpers/user_event.php')
-rw-r--r--modules/user/helpers/user_event.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/user/helpers/user_event.php b/modules/user/helpers/user_event.php
index 21848e2e..4af1d22f 100644
--- a/modules/user/helpers/user_event.php
+++ b/modules/user/helpers/user_event.php
@@ -23,5 +23,11 @@ class user_event_Core {
*/
static function gallery_ready() {
user::load_user();
+
+ $locale = user::active()->locale;
+ if (!empty($locale)) {
+ // TODO(andy_st): Check session data as well.
+ I18n::instance()->setLocale($locale);
+ }
}
}