localyzed 0.0.0.8 → 0.0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,7 @@ class ActionController::Base
15
15
  locale = I18n.locale = cl
16
16
  session[:locale] = locale
17
17
  else
18
- set_gettext_locale
18
+ define_locale
19
19
  end
20
20
  end
21
21
 
@@ -33,4 +33,12 @@ class ActionController::Base
33
33
  end
34
34
  end
35
35
  end
36
+
37
+ private
38
+
39
+ def define_locale
40
+ requested_locale = params[:locale] || session[:locale] || cookies[:locale] || request.env['HTTP_ACCEPT_LANGUAGE'] || I18n.default_locale
41
+ session[:locale] = locale
42
+ I18n.locale = locale
43
+ end
36
44
  end
@@ -1,3 +1,3 @@
1
1
  module Localyzed
2
- VERSION = "0.0.0.8"
2
+ VERSION = "0.0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: localyzed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.8
4
+ version: 0.0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: