gettext_i18n_rails 0.5.4 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gettext_i18n_rails (0.
|
4
|
+
gettext_i18n_rails (0.6.1)
|
5
5
|
fast_gettext
|
6
6
|
|
7
7
|
GEM
|
@@ -41,7 +41,7 @@ GEM
|
|
41
41
|
builder (3.0.0)
|
42
42
|
diff-lcs (1.1.2)
|
43
43
|
erubis (2.7.0)
|
44
|
-
fast_gettext (0.
|
44
|
+
fast_gettext (0.6.7)
|
45
45
|
gettext (2.1.0)
|
46
46
|
locale (>= 2.0.5)
|
47
47
|
haml (3.1.4)
|
@@ -80,5 +80,12 @@ describe GettextI18nRails do
|
|
80
80
|
FastGettext.locale.should == 'de'
|
81
81
|
I18n.locale.should == :de
|
82
82
|
end
|
83
|
+
|
84
|
+
it "converts gettext to i18n style for nested locales" do
|
85
|
+
FastGettext.available_locales = ['de_CH']
|
86
|
+
I18n.locale = :"de-CH"
|
87
|
+
FastGettext.locale.should == 'de_CH'
|
88
|
+
I18n.locale.should == :"de-CH"
|
89
|
+
end
|
83
90
|
end
|
84
|
-
end
|
91
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gettext_i18n_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 6
|
9
|
+
- 1
|
10
|
+
version: 0.6.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Grosser
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-06-03 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: fast_gettext
|