From 632b3a03d732ae735b2efd1999e14c649bf35b77 Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 19 Feb 2009 22:39:48 +0100 Subject: small enhancement for the locale filter --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 3ee43d4..d624c89 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -15,6 +15,6 @@ class ApplicationController < ActionController::Base protected def set_locale - I18n.locale = params[:locale] || :en + I18n.locale = params[:locale].to_sym if params[:locale] end end -- cgit v1.3