translations_ennder 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/lib/translations_ennder/rails.rb +3 -3
- data/version.txt +1 -1
- metadata +3 -3
data/History.txt
CHANGED
@@ -57,9 +57,9 @@ module ActionController
|
|
57
57
|
elsif session[:locale].blank? and (! request.env['HTTP_ACCEPT_LANGUAGE'].blank?)
|
58
58
|
#Vient des entêtes de la requête
|
59
59
|
_http_lang_tab = request.env['HTTP_ACCEPT_LANGUAGE'].scan(/^[a-z]{2}/)
|
60
|
-
if (! _http_lang_tab.empty?) and (!
|
61
|
-
if
|
62
|
-
I18n.locale =
|
60
|
+
if (! _http_lang_tab.empty?) and (! _http_lang_tab.first.blank? )
|
61
|
+
if _http_lang_tab.first.match /^(en|fr)$/
|
62
|
+
I18n.locale = _http_lang_tab.first
|
63
63
|
else
|
64
64
|
set_locale_session_or_fr
|
65
65
|
end
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: translations_ennder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 1
|
10
|
+
version: 1.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ennder
|