theoooo-i18n 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/VERSION.yml +4 -0
- data/lib/i18n/backend/base.rb +237 -0
- data/lib/i18n/backend/cache.rb +69 -0
- data/lib/i18n/backend/chain.rb +59 -0
- data/lib/i18n/backend/fallbacks.rb +51 -0
- data/lib/i18n/backend/gettext.rb +63 -0
- data/lib/i18n/backend/pluralization.rb +54 -0
- data/lib/i18n/gettext.rb +23 -0
- data/lib/i18n/hash.rb +37 -0
- data/lib/i18n/helpers/gettext.rb +33 -0
- data/lib/i18n/locale/fallbacks.rb +98 -0
- data/lib/i18n/locale/tag/parents.rb +22 -0
- data/lib/i18n/locale/tag/rfc4646.rb +76 -0
- data/lib/i18n/locale/tag/simple.rb +42 -0
- data/lib/i18n/locale/tag.rb +25 -0
- data/test/backend/cache/cache_test.rb +51 -0
- data/test/backend/chain/api_test.rb +71 -0
- data/test/backend/chain/chain_test.rb +62 -0
- data/test/backend/fallbacks/api_test.rb +69 -0
- data/test/backend/fallbacks/fallbacks_test.rb +27 -0
- data/test/backend/pluralization/api_test.rb +70 -0
- data/test/backend/pluralization/pluralization_test.rb +37 -0
- data/test/fixtures/locales/de.po +61 -0
- data/test/fixtures/locales/plurals.rb +110 -0
- data/test/gettext/api_test.rb +76 -0
- data/test/gettext/backend_test.rb +33 -0
- data/test/locale/fallbacks_test.rb +126 -0
- data/test/locale/tag/rfc4646_test.rb +145 -0
- data/test/locale/tag/simple_test.rb +33 -0
- metadata +50 -8
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: theoooo-i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sven Fuchs
|
@@ -13,7 +13,7 @@ autorequire:
|
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
15
|
|
16
|
-
date: 2009-
|
16
|
+
date: 2009-08-03 00:00:00 -07:00
|
17
17
|
default_executable:
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
@@ -40,11 +40,26 @@ files:
|
|
40
40
|
- README.textile
|
41
41
|
- Rakefile
|
42
42
|
- VERSION
|
43
|
+
- VERSION.yml
|
43
44
|
- lib/i18n.rb
|
44
|
-
- lib/i18n/backend/simple.rb
|
45
45
|
- lib/i18n/backend/active_record.rb
|
46
46
|
- lib/i18n/backend/active_record/translation.rb
|
47
|
+
- lib/i18n/backend/base.rb
|
48
|
+
- lib/i18n/backend/cache.rb
|
49
|
+
- lib/i18n/backend/chain.rb
|
50
|
+
- lib/i18n/backend/fallbacks.rb
|
51
|
+
- lib/i18n/backend/gettext.rb
|
52
|
+
- lib/i18n/backend/pluralization.rb
|
53
|
+
- lib/i18n/backend/simple.rb
|
47
54
|
- lib/i18n/exceptions.rb
|
55
|
+
- lib/i18n/gettext.rb
|
56
|
+
- lib/i18n/hash.rb
|
57
|
+
- lib/i18n/helpers/gettext.rb
|
58
|
+
- lib/i18n/locale/fallbacks.rb
|
59
|
+
- lib/i18n/locale/tag.rb
|
60
|
+
- lib/i18n/locale/tag/parents.rb
|
61
|
+
- lib/i18n/locale/tag/rfc4646.rb
|
62
|
+
- lib/i18n/locale/tag/simple.rb
|
48
63
|
- lib/i18n/string.rb
|
49
64
|
- test/all.rb
|
50
65
|
- test/api/basics.rb
|
@@ -57,18 +72,32 @@ files:
|
|
57
72
|
- test/api/localization/time.rb
|
58
73
|
- test/api/pluralization.rb
|
59
74
|
- test/api/translation.rb
|
75
|
+
- test/backend/active_record/api_test.rb
|
76
|
+
- test/backend/active_record/setup.rb
|
77
|
+
- test/backend/cache/cache_test.rb
|
78
|
+
- test/backend/chain/api_test.rb
|
79
|
+
- test/backend/chain/chain_test.rb
|
80
|
+
- test/backend/fallbacks/api_test.rb
|
81
|
+
- test/backend/fallbacks/fallbacks_test.rb
|
82
|
+
- test/backend/pluralization/api_test.rb
|
83
|
+
- test/backend/pluralization/pluralization_test.rb
|
60
84
|
- test/backend/simple/all.rb
|
61
85
|
- test/backend/simple/api_test.rb
|
62
86
|
- test/backend/simple/lookup_test.rb
|
63
87
|
- test/backend/simple/setup.rb
|
64
88
|
- test/backend/simple/translations_test.rb
|
65
|
-
- test/
|
66
|
-
- test/backend/active_record/setup.rb
|
89
|
+
- test/fixtures/locales/de.po
|
67
90
|
- test/fixtures/locales/en.rb
|
68
91
|
- test/fixtures/locales/en.yml
|
92
|
+
- test/fixtures/locales/plurals.rb
|
93
|
+
- test/gettext/api_test.rb
|
94
|
+
- test/gettext/backend_test.rb
|
69
95
|
- test/i18n_exceptions_test.rb
|
70
96
|
- test/i18n_load_path_test.rb
|
71
97
|
- test/i18n_test.rb
|
98
|
+
- test/locale/fallbacks_test.rb
|
99
|
+
- test/locale/tag/rfc4646_test.rb
|
100
|
+
- test/locale/tag/simple_test.rb
|
72
101
|
- test/string_test.rb
|
73
102
|
- test/test_helper.rb
|
74
103
|
- test/with_options.rb
|
@@ -94,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
123
|
version:
|
95
124
|
requirements: []
|
96
125
|
|
97
|
-
rubyforge_project:
|
126
|
+
rubyforge_project: i18n
|
98
127
|
rubygems_version: 1.3.5
|
99
128
|
signing_key:
|
100
129
|
specification_version: 2
|
@@ -111,17 +140,30 @@ test_files:
|
|
111
140
|
- test/api/localization/time.rb
|
112
141
|
- test/api/pluralization.rb
|
113
142
|
- test/api/translation.rb
|
143
|
+
- test/backend/active_record/api_test.rb
|
144
|
+
- test/backend/active_record/setup.rb
|
145
|
+
- test/backend/cache/cache_test.rb
|
146
|
+
- test/backend/chain/api_test.rb
|
147
|
+
- test/backend/chain/chain_test.rb
|
148
|
+
- test/backend/fallbacks/api_test.rb
|
149
|
+
- test/backend/fallbacks/fallbacks_test.rb
|
150
|
+
- test/backend/pluralization/api_test.rb
|
151
|
+
- test/backend/pluralization/pluralization_test.rb
|
114
152
|
- test/backend/simple/all.rb
|
115
153
|
- test/backend/simple/api_test.rb
|
116
154
|
- test/backend/simple/lookup_test.rb
|
117
155
|
- test/backend/simple/setup.rb
|
118
156
|
- test/backend/simple/translations_test.rb
|
119
|
-
- test/backend/active_record/api_test.rb
|
120
|
-
- test/backend/active_record/setup.rb
|
121
157
|
- test/fixtures/locales/en.rb
|
158
|
+
- test/fixtures/locales/plurals.rb
|
159
|
+
- test/gettext/api_test.rb
|
160
|
+
- test/gettext/backend_test.rb
|
122
161
|
- test/i18n_exceptions_test.rb
|
123
162
|
- test/i18n_load_path_test.rb
|
124
163
|
- test/i18n_test.rb
|
164
|
+
- test/locale/fallbacks_test.rb
|
165
|
+
- test/locale/tag/rfc4646_test.rb
|
166
|
+
- test/locale/tag/simple_test.rb
|
125
167
|
- test/string_test.rb
|
126
168
|
- test/test_helper.rb
|
127
169
|
- test/with_options.rb
|