I18n: Workaround for a weired caching issue when multiple users are logged in

This commit is contained in:
MrZYX 2011-02-16 22:40:18 +01:00
parent a636ceec7f
commit dfa5d875c5

View file

@ -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