Permalink
Browse files

Merge pull request #2 from sbounmy/default_locale_for_admin

settting default locale for amdin
  • Loading branch information...
2 parents 9d6f636 + 347effb commit c61a7661d369605cdac60ff1269551ba0eb638d6 Jean-Philippe Boily committed Apr 11, 2012
Showing with 11 additions and 5 deletions.
  1. +4 −5 README.md
  2. +7 −0 app/controllers/base_controller_decorator.rb
View
@@ -91,15 +91,14 @@ SpreeMultiLingual depends on a fork of routing-filter because it supports :exclu
1. Make taxons multi languages editable from the taxonomy tree
2. Dynamically show taxon full permalink depending on dropdown language selected : Taxons#edit
2. Travis-CI
-3. Admin default locale ?
-4. Add things to translate:
+3. Add things to translate:
- Option types
- Option values
- Properties
- Alt text on images
-5. Dropdown or something to change locale
-6. Fallback
-7. Rake task for store that already have users
+4. Dropdown or something to change locale
+5. Fallback
+6. Rake task for store that already have users
## Testing
@@ -26,4 +26,11 @@ def locale_suffix(locale)
locale ||= I18n.locale
I18n.locale == locale.to_sym ? "".to_sym : "_"+ locale
end
+
+ private
+
+ def set_user_language
+ I18n.locale = Spree::Config[:default_locale].to_sym
+ end
+
end

0 comments on commit c61a766

Please sign in to comment.