diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index fb4ee359..9f1fde94 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -42,6 +42,8 @@ class ApplicationController < ActionController::Base extend ActionView::Helpers::SanitizeHelper::ClassMethods helper_method :format_date, :markdown + I18n.locale = Tracks::Config.locale + # By default, sets the charset to UTF-8 if it isn't already set def set_charset headers["Content-Type"] ||= "text/html; charset=UTF-8" @@ -276,8 +278,7 @@ class ApplicationController < ActionController::Base def set_time_zone Time.zone = current_user.prefs.time_zone if logged_in? - locale = params[:locale] || 'en-US' - I18n.locale = locale + I18n.locale = Tracks::Config.locale end def set_zindex_counter diff --git a/app/views/login/login.html.erb b/app/views/login/login.html.erb index ee1665b3..b4a1dda5 100644 --- a/app/views/login/login.html.erb +++ b/app/views/login/login.html.erb @@ -9,8 +9,6 @@ <%= render_flash %>
auth method <%=cookies[:preferred_auth]%>
-cas user<%=session[:cas_user]%>
<% if show_database_form %>| "<%= session[:cas_user]%>" | -|