From dfa5d875c5cb8f71cb6db51440bca553ba0a5d35 Mon Sep 17 00:00:00 2001
From: MrZYX <pr0fkill@gmail.com>
Date: Wed, 16 Feb 2011 22:40:18 +0100
Subject: [PATCH] I18n:  Workaround for a weired caching issue when multiple
 users are logged in

---
 app/helpers/application_helper.rb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index fc744c270d..045030abc6 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -271,6 +271,9 @@ module ApplicationHelper
 
 
   def get_javascript_strings_for(language)
+    # Workaround for a weired caching issue when multiple users are logged in
+    I18n.backend.reload!
+    
     defaults = I18n.t('javascripts', :locale => DEFAULT_LANGUAGE)
 
     if language != DEFAULT_LANGUAGE
-- 
GitLab