redmine-avoid-epiphany-lang-500.patch

Chris Cannam, 2010-04-29 13:35

Download (707 Bytes)

View differences:

app/controllers/application_controller.rb Thu Apr 29 11:34:38 2010 +0000
107 107
      lang = find_language(User.current.language)
108 108
    end
109 109
    if lang.nil? && request.env['HTTP_ACCEPT_LANGUAGE']
110
      accept_lang = parse_qvalues(request.env['HTTP_ACCEPT_LANGUAGE']).first.downcase
110
      accept_lang = parse_qvalues(request.env['HTTP_ACCEPT_LANGUAGE']).first
111 111
      if !accept_lang.blank?
112
        accept_lang = accept_lang.downcase
112 113
        lang = find_language(accept_lang) || find_language(accept_lang.split('-').first)
113 114
      end
114 115
    end