Might be useful to set the locale everywhere we need the web, rather than just the...
[rails.git] / app / controllers / user_controller.rb
index eb1471b00f005769359f03afd1eb87ab04335ffc..36516f60f05698c93bb32d00a374cc3440ab3f5b 100644 (file)
@@ -2,6 +2,7 @@ class UserController < ApplicationController
   layout 'site'
 
   before_filter :authorize, :only => [:api_details, :api_gpx_files]
+  before_filter :set_locale, :except => [:api_details, :api_gpx_files]
   before_filter :authorize_web, :except => [:api_details, :api_gpx_files]
   before_filter :require_user, :only => [:set_home, :account, :go_public, :make_friend, :remove_friend, :upload_image, :delete_image]
   before_filter :check_database_readable, :except => [:api_details, :api_gpx_files]