possibly fix the problem with js i18n that occurs on joindiaspora

This commit is contained in:
Dan Hansen 2011-02-15 22:43:06 -06:00
parent 90897099bd
commit e2ec4c0424

View file

@ -271,8 +271,13 @@ module ApplicationHelper
def get_javascript_strings_for(language)
translations = I18n.t('javascripts', :locale => language)
defaults = I18n.t('javascripts', :locale => DEFAULT_LANGUAGE)
if language != DEFAULT_LANGUAGE
translations = I18n.t('javascripts', :locale => language)
defaults.update(translations)
end
defaults
end
end