Permalink
Browse files

fix bug with locales

Signed-off-by: David A. Cuadrado <krawek@gmail.com>
  • Loading branch information...
1 parent dcaf751 commit 2f056fb2193f6dfe6bc5313fac700233c63dcad9 @dcu dcu committed Nov 29, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/application_controller.rb
@@ -159,7 +159,7 @@ def set_locale
locale = AppConfig.default_language || 'en'
if AppConfig.enable_i18n
if current_group.language.present?
- I18n.locale = current_group.language
+ locale = current_group.language
elsif logged_in?
locale = current_user.language
Time.zone = current_user.timezone || "UTC"

0 comments on commit 2f056fb

Please sign in to comment.