Permalink
Browse files

Adding missing default locale in application controller

  • Loading branch information...
1 parent 0e77d42 commit cc84764186fd06936b7b33bae552b4d9c74942b8 @akitaonrails committed Jul 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/application_controller.rb
@@ -11,6 +11,6 @@ def set_locale
lang = lang[/^[a-z]{2}/]
lang = :"pt-BR" if lang == "pt"
end
- I18n.locale = params[:locale] || lang
+ I18n.locale = params[:locale] || lang || I18n.default_locale
end
end

0 comments on commit cc84764

Please sign in to comment.