polish 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +20 -0
- data/README.md +25 -0
- data/Rakefile +56 -0
- data/TODO +5 -0
- data/init.rb +1 -0
- data/lib/polish.rb +104 -0
- data/lib/polish/action_view_ext/helpers/date_helper.rb +94 -0
- data/lib/polish/backend/advanced.rb +105 -0
- data/lib/polish/locale/actionview.yml +81 -0
- data/lib/polish/locale/activerecord.yml +27 -0
- data/lib/polish/locale/activesupport.yml +11 -0
- data/lib/polish/locale/datetime.yml +25 -0
- data/lib/polish/locale/pluralize.rb +16 -0
- data/lib/vendor/i18n/CHANGELOG.textile +57 -0
- data/lib/vendor/i18n/MIT-LICENSE +20 -0
- data/lib/vendor/i18n/README.textile +42 -0
- data/lib/vendor/i18n/Rakefile +21 -0
- data/lib/vendor/i18n/VERSION +1 -0
- data/lib/vendor/i18n/i18n.gemspec +141 -0
- data/lib/vendor/i18n/lib/i18n.rb +270 -0
- data/lib/vendor/i18n/lib/i18n/backend/base.rb +251 -0
- data/lib/vendor/i18n/lib/i18n/backend/cache.rb +71 -0
- data/lib/vendor/i18n/lib/i18n/backend/chain.rb +64 -0
- data/lib/vendor/i18n/lib/i18n/backend/fallbacks.rb +53 -0
- data/lib/vendor/i18n/lib/i18n/backend/gettext.rb +65 -0
- data/lib/vendor/i18n/lib/i18n/backend/pluralization.rb +56 -0
- data/lib/vendor/i18n/lib/i18n/backend/simple.rb +23 -0
- data/lib/vendor/i18n/lib/i18n/exceptions.rb +61 -0
- data/lib/vendor/i18n/lib/i18n/gettext.rb +25 -0
- data/lib/vendor/i18n/lib/i18n/helpers/gettext.rb +35 -0
- data/lib/vendor/i18n/lib/i18n/locale/fallbacks.rb +100 -0
- data/lib/vendor/i18n/lib/i18n/locale/tag.rb +27 -0
- data/lib/vendor/i18n/lib/i18n/locale/tag/parents.rb +24 -0
- data/lib/vendor/i18n/lib/i18n/locale/tag/rfc4646.rb +78 -0
- data/lib/vendor/i18n/lib/i18n/locale/tag/simple.rb +44 -0
- data/lib/vendor/i18n/lib/i18n/string.rb +95 -0
- data/lib/vendor/i18n/test/all.rb +5 -0
- data/lib/vendor/i18n/test/api/basics.rb +15 -0
- data/lib/vendor/i18n/test/api/interpolation.rb +85 -0
- data/lib/vendor/i18n/test/api/lambda.rb +52 -0
- data/lib/vendor/i18n/test/api/link.rb +47 -0
- data/lib/vendor/i18n/test/api/localization/date.rb +65 -0
- data/lib/vendor/i18n/test/api/localization/date_time.rb +63 -0
- data/lib/vendor/i18n/test/api/localization/lambda.rb +26 -0
- data/lib/vendor/i18n/test/api/localization/time.rb +63 -0
- data/lib/vendor/i18n/test/api/pluralization.rb +37 -0
- data/lib/vendor/i18n/test/api/translation.rb +51 -0
- data/lib/vendor/i18n/test/backend/cache/cache_test.rb +57 -0
- data/lib/vendor/i18n/test/backend/chain/api_test.rb +80 -0
- data/lib/vendor/i18n/test/backend/chain/chain_test.rb +64 -0
- data/lib/vendor/i18n/test/backend/fallbacks/api_test.rb +79 -0
- data/lib/vendor/i18n/test/backend/fallbacks/fallbacks_test.rb +29 -0
- data/lib/vendor/i18n/test/backend/pluralization/api_test.rb +81 -0
- data/lib/vendor/i18n/test/backend/pluralization/pluralization_test.rb +39 -0
- data/lib/vendor/i18n/test/backend/simple/all.rb +5 -0
- data/lib/vendor/i18n/test/backend/simple/api_test.rb +90 -0
- data/lib/vendor/i18n/test/backend/simple/lookup_test.rb +24 -0
- data/lib/vendor/i18n/test/backend/simple/setup.rb +147 -0
- data/lib/vendor/i18n/test/backend/simple/translations_test.rb +89 -0
- data/lib/vendor/i18n/test/fixtures/locales/de.po +61 -0
- data/lib/vendor/i18n/test/fixtures/locales/en.rb +3 -0
- data/lib/vendor/i18n/test/fixtures/locales/en.yml +3 -0
- data/lib/vendor/i18n/test/fixtures/locales/plurals.rb +112 -0
- data/lib/vendor/i18n/test/gettext/api_test.rb +78 -0
- data/lib/vendor/i18n/test/gettext/backend_test.rb +35 -0
- data/lib/vendor/i18n/test/i18n_exceptions_test.rb +97 -0
- data/lib/vendor/i18n/test/i18n_load_path_test.rb +23 -0
- data/lib/vendor/i18n/test/i18n_test.rb +163 -0
- data/lib/vendor/i18n/test/locale/fallbacks_test.rb +128 -0
- data/lib/vendor/i18n/test/locale/tag/rfc4646_test.rb +147 -0
- data/lib/vendor/i18n/test/locale/tag/simple_test.rb +35 -0
- data/lib/vendor/i18n/test/string_test.rb +94 -0
- data/lib/vendor/i18n/test/test_helper.rb +71 -0
- data/lib/vendor/i18n/test/with_options.rb +34 -0
- data/lib/vendor/i18n/vendor/po_parser.rb +329 -0
- data/spec/fixtures/en.yml +4 -0
- data/spec/fixtures/pl.yml +4 -0
- data/spec/i18n/locale/datetime_spec.rb +91 -0
- data/spec/i18n/locale/pluralization_spec.rb +41 -0
- data/spec/locale_spec.rb +124 -0
- data/spec/polish_spec.rb +141 -0
- data/spec/spec_helper.rb +4 -0
- metadata +138 -0
@@ -0,0 +1,41 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../../spec_helper'
|
2
|
+
|
3
|
+
describe I18n, "Polish pluralization" do
|
4
|
+
before(:each) do
|
5
|
+
@hash = {}
|
6
|
+
%w(one few other).each do |key|
|
7
|
+
@hash[key.to_sym] = key
|
8
|
+
end
|
9
|
+
@backend = I18n.backend
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should pluralize correctly" do
|
13
|
+
@backend.send(:pluralize, :'pl', @hash, 1).should == 'one'
|
14
|
+
@backend.send(:pluralize, :'pl', @hash, 2).should == 'few'
|
15
|
+
@backend.send(:pluralize, :'pl', @hash, 3).should == 'few'
|
16
|
+
@backend.send(:pluralize, :'pl', @hash, 4).should == 'few'
|
17
|
+
@backend.send(:pluralize, :'pl', @hash, 5).should == 'other'
|
18
|
+
@backend.send(:pluralize, :'pl', @hash, 10).should == 'other'
|
19
|
+
@backend.send(:pluralize, :'pl', @hash, 11).should == 'other'
|
20
|
+
@backend.send(:pluralize, :'pl', @hash, 12).should == 'other'
|
21
|
+
@backend.send(:pluralize, :'pl', @hash, 13).should == 'other'
|
22
|
+
@backend.send(:pluralize, :'pl', @hash, 14).should == 'other'
|
23
|
+
@backend.send(:pluralize, :'pl', @hash, 20).should == 'other'
|
24
|
+
@backend.send(:pluralize, :'pl', @hash, 21).should == 'other'
|
25
|
+
@backend.send(:pluralize, :'pl', @hash, 22).should == 'few'
|
26
|
+
@backend.send(:pluralize, :'pl', @hash, 23).should == 'few'
|
27
|
+
@backend.send(:pluralize, :'pl', @hash, 24).should == 'few'
|
28
|
+
@backend.send(:pluralize, :'pl', @hash, 25).should == 'other'
|
29
|
+
@backend.send(:pluralize, :'pl', @hash, 30).should == 'other'
|
30
|
+
@backend.send(:pluralize, :'pl', @hash, 31).should == 'other'
|
31
|
+
@backend.send(:pluralize, :'pl', @hash, 32).should == 'few'
|
32
|
+
@backend.send(:pluralize, :'pl', @hash, 33).should == 'few'
|
33
|
+
@backend.send(:pluralize, :'pl', @hash, 34).should == 'few'
|
34
|
+
@backend.send(:pluralize, :'pl', @hash, 112).should == 'other'
|
35
|
+
@backend.send(:pluralize, :'pl', @hash, 122).should == 'few'
|
36
|
+
@backend.send(:pluralize, :'pl', @hash, 132).should == 'few'
|
37
|
+
@backend.send(:pluralize, :'pl', @hash, 1.31).should == 'other'
|
38
|
+
@backend.send(:pluralize, :'pl', @hash, 2.31).should == 'other'
|
39
|
+
@backend.send(:pluralize, :'pl', @hash, 3.31).should == 'other'
|
40
|
+
end
|
41
|
+
end
|
data/spec/locale_spec.rb
ADDED
@@ -0,0 +1,124 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/spec_helper'
|
2
|
+
|
3
|
+
describe Polish, "loading locales" do
|
4
|
+
before(:all) do
|
5
|
+
Polish.init_i18n
|
6
|
+
end
|
7
|
+
|
8
|
+
%w(
|
9
|
+
date.formats.default
|
10
|
+
date.formats.short
|
11
|
+
date.formats.long
|
12
|
+
date.day_names
|
13
|
+
date.standalone_day_names
|
14
|
+
date.abbr_day_names
|
15
|
+
date.month_names
|
16
|
+
date.standalone_month_names
|
17
|
+
date.abbr_month_names
|
18
|
+
date.standalone_abbr_month_names
|
19
|
+
date.order
|
20
|
+
|
21
|
+
time.formats.default
|
22
|
+
time.formats.short
|
23
|
+
time.formats.long
|
24
|
+
time.am
|
25
|
+
time.pm
|
26
|
+
).each do |key|
|
27
|
+
it "should define '#{key}' in datetime translations" do
|
28
|
+
lookup(key).should_not be_nil
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
it "should load pluralization rules" do
|
33
|
+
lookup(:"pluralize").should_not be_nil
|
34
|
+
lookup(:"pluralize").is_a?(Proc).should be_true
|
35
|
+
end
|
36
|
+
|
37
|
+
%w(
|
38
|
+
number.format.separator
|
39
|
+
number.format.delimiter
|
40
|
+
number.format.precision
|
41
|
+
number.currency.format.format
|
42
|
+
number.currency.format.unit
|
43
|
+
number.currency.format.separator
|
44
|
+
number.currency.format.delimiter
|
45
|
+
number.currency.format.precision
|
46
|
+
number.percentage.format.delimiter
|
47
|
+
number.precision.format.delimiter
|
48
|
+
number.human.format.delimiter
|
49
|
+
number.human.format.precision
|
50
|
+
number.human.storage_units
|
51
|
+
|
52
|
+
datetime.distance_in_words.half_a_minute
|
53
|
+
datetime.distance_in_words.less_than_x_seconds
|
54
|
+
datetime.distance_in_words.x_seconds
|
55
|
+
datetime.distance_in_words.less_than_x_minutes
|
56
|
+
datetime.distance_in_words.x_minutes
|
57
|
+
datetime.distance_in_words.about_x_hours
|
58
|
+
datetime.distance_in_words.x_days
|
59
|
+
datetime.distance_in_words.about_x_months
|
60
|
+
datetime.distance_in_words.x_months
|
61
|
+
datetime.distance_in_words.about_x_years
|
62
|
+
datetime.distance_in_words.over_x_years
|
63
|
+
|
64
|
+
datetime.prompts.year
|
65
|
+
datetime.prompts.month
|
66
|
+
datetime.prompts.day
|
67
|
+
datetime.prompts.hour
|
68
|
+
datetime.prompts.minute
|
69
|
+
datetime.prompts.second
|
70
|
+
|
71
|
+
activerecord.errors.template.header
|
72
|
+
activerecord.errors.template.body
|
73
|
+
|
74
|
+
support.select.prompt
|
75
|
+
).each do |key|
|
76
|
+
it "should define '#{key}' in actionview translations" do
|
77
|
+
lookup(key).should_not be_nil
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
%w(
|
82
|
+
activerecord.errors.messages.inclusion
|
83
|
+
activerecord.errors.messages.exclusion
|
84
|
+
activerecord.errors.messages.invalid
|
85
|
+
activerecord.errors.messages.confirmation
|
86
|
+
activerecord.errors.messages.accepted
|
87
|
+
activerecord.errors.messages.empty
|
88
|
+
activerecord.errors.messages.blank
|
89
|
+
activerecord.errors.messages.too_long
|
90
|
+
activerecord.errors.messages.too_short
|
91
|
+
activerecord.errors.messages.wrong_length
|
92
|
+
activerecord.errors.messages.taken
|
93
|
+
activerecord.errors.messages.not_a_number
|
94
|
+
activerecord.errors.messages.greater_than
|
95
|
+
activerecord.errors.messages.greater_than_or_equal_to
|
96
|
+
activerecord.errors.messages.equal_to
|
97
|
+
activerecord.errors.messages.less_than
|
98
|
+
activerecord.errors.messages.less_than_or_equal_to
|
99
|
+
activerecord.errors.messages.odd
|
100
|
+
activerecord.errors.messages.even
|
101
|
+
activerecord.errors.messages.record_invalid
|
102
|
+
).each do |key|
|
103
|
+
it "should define '#{key}' in activerecord translations" do
|
104
|
+
lookup(key).should_not be_nil
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
%w(
|
109
|
+
support.array.sentence_connector
|
110
|
+
support.array.skip_last_comma
|
111
|
+
|
112
|
+
support.array.words_connector
|
113
|
+
support.array.two_words_connector
|
114
|
+
support.array.last_word_connector
|
115
|
+
).each do |key|
|
116
|
+
it "should define '#{key}' in activesupport translations" do
|
117
|
+
lookup(key).should_not be_nil
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
def lookup(*args)
|
122
|
+
I18n.backend.send(:lookup, Polish.locale, *args)
|
123
|
+
end
|
124
|
+
end
|
data/spec/polish_spec.rb
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/spec_helper'
|
2
|
+
|
3
|
+
describe Polish, "VERSION" do
|
4
|
+
it "should be defined" do
|
5
|
+
%w(MAJOR MINOR TINY STRING).each do |v|
|
6
|
+
Polish::VERSION.const_defined?(v).should == true
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
describe Polish do
|
12
|
+
describe "with locale" do
|
13
|
+
it "should define :'pl' LOCALE" do
|
14
|
+
Polish::LOCALE.should == :'pl'
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should provide 'locale' proxy" do
|
18
|
+
Polish.locale.should == Polish::LOCALE
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
describe "with custom backend class" do
|
23
|
+
it "should define i18n_backend_class" do
|
24
|
+
Polish.i18n_backend_class.should == I18n::Backend::Advanced
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe "during i18n initialization" do
|
29
|
+
after(:each) do
|
30
|
+
I18n.load_path = []
|
31
|
+
Polish.init_i18n
|
32
|
+
end
|
33
|
+
|
34
|
+
it "should set I18n backend to an instance of a custom backend" do
|
35
|
+
Polish.init_i18n
|
36
|
+
I18n.backend.class.should == Polish.i18n_backend_class
|
37
|
+
end
|
38
|
+
|
39
|
+
it "should keep existing translations while switching backends" do
|
40
|
+
I18n.load_path << File.join(File.dirname(__FILE__), 'fixtures', 'en.yml')
|
41
|
+
Polish.init_i18n
|
42
|
+
I18n.t(:foo, :locale => :'en').should == "bar"
|
43
|
+
end
|
44
|
+
|
45
|
+
it "should keep existing :pl translations while switching backends" do
|
46
|
+
I18n.load_path << File.join(File.dirname(__FILE__), 'fixtures', 'pl.yml')
|
47
|
+
Polish.init_i18n
|
48
|
+
I18n.t(:'date.formats.default', :locale => :'pl').should == "override"
|
49
|
+
end
|
50
|
+
|
51
|
+
it "should set default locale to Polish locale" do
|
52
|
+
Polish.init_i18n
|
53
|
+
I18n.default_locale.should == Polish.locale
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
describe "with localize proxy" do
|
58
|
+
before(:all) do
|
59
|
+
@time = mock(:time)
|
60
|
+
@options = { :format => "%d %B %Y" }
|
61
|
+
end
|
62
|
+
|
63
|
+
%w(l localize).each do |method|
|
64
|
+
it "'#{method}' should call I18n backend localize" do
|
65
|
+
I18n.should_receive(:localize).with(@time, @options.merge({ :locale => Polish.locale }))
|
66
|
+
Polish.send(method, @time, @options)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe "with translate proxy" do
|
72
|
+
before(:all) do
|
73
|
+
@object = :bar
|
74
|
+
@options = { :scope => :foo }
|
75
|
+
end
|
76
|
+
|
77
|
+
%w(t translate).each do |method|
|
78
|
+
it "'#{method}' should call I18n backend translate" do
|
79
|
+
I18n.should_receive(:translate).with(@object, @options.merge({ :locale => Polish.locale }))
|
80
|
+
Polish.send(method, @object, @options)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
describe "strftime" do
|
86
|
+
before(:all) do
|
87
|
+
@time = mock(:time)
|
88
|
+
end
|
89
|
+
|
90
|
+
it "should call localize with object and format" do
|
91
|
+
format = "%d %B %Y"
|
92
|
+
Polish.should_receive(:localize).with(@time, { :format => format })
|
93
|
+
Polish.strftime(@time, format)
|
94
|
+
end
|
95
|
+
|
96
|
+
it "should call localize with object and default format when format is not specified" do
|
97
|
+
Polish.should_receive(:localize).with(@time, { :format => :default })
|
98
|
+
Polish.strftime(@time)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
describe "with pluralization" do
|
103
|
+
%w(p pluralize).each do |method|
|
104
|
+
it "'#{method}' should pluralize with variants given" do
|
105
|
+
variants = %w(dom domy domów)
|
106
|
+
|
107
|
+
Polish.send(method, 1, *variants).should == 'dom'
|
108
|
+
Polish.send(method, 2, *variants).should == 'domy'
|
109
|
+
Polish.send(method, 3, *variants).should == 'domy'
|
110
|
+
Polish.send(method, 4, *variants).should == 'domy'
|
111
|
+
Polish.send(method, 5, *variants).should == 'domów'
|
112
|
+
Polish.send(method, 10, *variants).should == 'domów'
|
113
|
+
Polish.send(method, 11, *variants).should == 'domów'
|
114
|
+
Polish.send(method, 12, *variants).should == 'domów'
|
115
|
+
Polish.send(method, 13, *variants).should == 'domów'
|
116
|
+
Polish.send(method, 14, *variants).should == 'domów'
|
117
|
+
Polish.send(method, 21, *variants).should == 'domów'
|
118
|
+
Polish.send(method, 22, *variants).should == 'domy'
|
119
|
+
Polish.send(method, 23, *variants).should == 'domy'
|
120
|
+
Polish.send(method, 24, *variants).should == 'domy'
|
121
|
+
Polish.send(method, 25, *variants).should == 'domów'
|
122
|
+
Polish.send(method, 29, *variants).should == 'domów'
|
123
|
+
Polish.send(method, 112, *variants).should == 'domów'
|
124
|
+
Polish.send(method, 131, *variants).should == 'domów'
|
125
|
+
Polish.send(method, 132, *variants).should == 'domy'
|
126
|
+
Polish.send(method, 3.14, *variants).should == 'domów'
|
127
|
+
end
|
128
|
+
|
129
|
+
it "should raise an exception when first parameter is not a number" do
|
130
|
+
lambda { Polish.send(method, nil, "dom", "domy", "domów") }.should raise_error(ArgumentError)
|
131
|
+
lambda { Polish.send(method, "dom", "domy", "domów", "domów") }.should raise_error(ArgumentError)
|
132
|
+
end
|
133
|
+
|
134
|
+
it "should raise an exception when there are not enough variants" do
|
135
|
+
lambda { Polish.send(method, 1) }.should raise_error(ArgumentError)
|
136
|
+
lambda { Polish.send(method, 1, "dom") }.should raise_error(ArgumentError)
|
137
|
+
lambda { Polish.send(method, 1, "dom", "domy") }.should raise_error(ArgumentError)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,138 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: polish
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Grzesiek Kolodziejczyk
|
8
|
+
autorequire: polish
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-10-25 01:00:00 +02:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Polish language support for Ruby and Rails
|
17
|
+
email: gkolodziejczyk@gmail.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README.md
|
24
|
+
- LICENSE
|
25
|
+
- TODO
|
26
|
+
files:
|
27
|
+
- LICENSE
|
28
|
+
- README.md
|
29
|
+
- Rakefile
|
30
|
+
- TODO
|
31
|
+
- init.rb
|
32
|
+
- lib/polish/action_view_ext/helpers/date_helper.rb
|
33
|
+
- lib/polish/backend/advanced.rb
|
34
|
+
- lib/polish/locale/actionview.yml
|
35
|
+
- lib/polish/locale/activerecord.yml
|
36
|
+
- lib/polish/locale/activesupport.yml
|
37
|
+
- lib/polish/locale/datetime.yml
|
38
|
+
- lib/polish/locale/pluralize.rb
|
39
|
+
- lib/polish.rb
|
40
|
+
- lib/vendor/i18n/CHANGELOG.textile
|
41
|
+
- lib/vendor/i18n/i18n.gemspec
|
42
|
+
- lib/vendor/i18n/lib/i18n/backend/base.rb
|
43
|
+
- lib/vendor/i18n/lib/i18n/backend/cache.rb
|
44
|
+
- lib/vendor/i18n/lib/i18n/backend/chain.rb
|
45
|
+
- lib/vendor/i18n/lib/i18n/backend/fallbacks.rb
|
46
|
+
- lib/vendor/i18n/lib/i18n/backend/gettext.rb
|
47
|
+
- lib/vendor/i18n/lib/i18n/backend/pluralization.rb
|
48
|
+
- lib/vendor/i18n/lib/i18n/backend/simple.rb
|
49
|
+
- lib/vendor/i18n/lib/i18n/exceptions.rb
|
50
|
+
- lib/vendor/i18n/lib/i18n/gettext.rb
|
51
|
+
- lib/vendor/i18n/lib/i18n/helpers/gettext.rb
|
52
|
+
- lib/vendor/i18n/lib/i18n/locale/fallbacks.rb
|
53
|
+
- lib/vendor/i18n/lib/i18n/locale/tag/parents.rb
|
54
|
+
- lib/vendor/i18n/lib/i18n/locale/tag/rfc4646.rb
|
55
|
+
- lib/vendor/i18n/lib/i18n/locale/tag/simple.rb
|
56
|
+
- lib/vendor/i18n/lib/i18n/locale/tag.rb
|
57
|
+
- lib/vendor/i18n/lib/i18n/string.rb
|
58
|
+
- lib/vendor/i18n/lib/i18n.rb
|
59
|
+
- lib/vendor/i18n/MIT-LICENSE
|
60
|
+
- lib/vendor/i18n/Rakefile
|
61
|
+
- lib/vendor/i18n/README.textile
|
62
|
+
- lib/vendor/i18n/test/all.rb
|
63
|
+
- lib/vendor/i18n/test/api/basics.rb
|
64
|
+
- lib/vendor/i18n/test/api/interpolation.rb
|
65
|
+
- lib/vendor/i18n/test/api/lambda.rb
|
66
|
+
- lib/vendor/i18n/test/api/link.rb
|
67
|
+
- lib/vendor/i18n/test/api/localization/date.rb
|
68
|
+
- lib/vendor/i18n/test/api/localization/date_time.rb
|
69
|
+
- lib/vendor/i18n/test/api/localization/lambda.rb
|
70
|
+
- lib/vendor/i18n/test/api/localization/time.rb
|
71
|
+
- lib/vendor/i18n/test/api/pluralization.rb
|
72
|
+
- lib/vendor/i18n/test/api/translation.rb
|
73
|
+
- lib/vendor/i18n/test/backend/cache/cache_test.rb
|
74
|
+
- lib/vendor/i18n/test/backend/chain/api_test.rb
|
75
|
+
- lib/vendor/i18n/test/backend/chain/chain_test.rb
|
76
|
+
- lib/vendor/i18n/test/backend/fallbacks/api_test.rb
|
77
|
+
- lib/vendor/i18n/test/backend/fallbacks/fallbacks_test.rb
|
78
|
+
- lib/vendor/i18n/test/backend/pluralization/api_test.rb
|
79
|
+
- lib/vendor/i18n/test/backend/pluralization/pluralization_test.rb
|
80
|
+
- lib/vendor/i18n/test/backend/simple/all.rb
|
81
|
+
- lib/vendor/i18n/test/backend/simple/api_test.rb
|
82
|
+
- lib/vendor/i18n/test/backend/simple/lookup_test.rb
|
83
|
+
- lib/vendor/i18n/test/backend/simple/setup.rb
|
84
|
+
- lib/vendor/i18n/test/backend/simple/translations_test.rb
|
85
|
+
- lib/vendor/i18n/test/fixtures/locales/de.po
|
86
|
+
- lib/vendor/i18n/test/fixtures/locales/en.rb
|
87
|
+
- lib/vendor/i18n/test/fixtures/locales/en.yml
|
88
|
+
- lib/vendor/i18n/test/fixtures/locales/plurals.rb
|
89
|
+
- lib/vendor/i18n/test/gettext/api_test.rb
|
90
|
+
- lib/vendor/i18n/test/gettext/backend_test.rb
|
91
|
+
- lib/vendor/i18n/test/i18n_exceptions_test.rb
|
92
|
+
- lib/vendor/i18n/test/i18n_load_path_test.rb
|
93
|
+
- lib/vendor/i18n/test/i18n_test.rb
|
94
|
+
- lib/vendor/i18n/test/locale/fallbacks_test.rb
|
95
|
+
- lib/vendor/i18n/test/locale/tag/rfc4646_test.rb
|
96
|
+
- lib/vendor/i18n/test/locale/tag/simple_test.rb
|
97
|
+
- lib/vendor/i18n/test/string_test.rb
|
98
|
+
- lib/vendor/i18n/test/test_helper.rb
|
99
|
+
- lib/vendor/i18n/test/with_options.rb
|
100
|
+
- lib/vendor/i18n/vendor/po_parser.rb
|
101
|
+
- lib/vendor/i18n/VERSION
|
102
|
+
- spec/fixtures/en.yml
|
103
|
+
- spec/fixtures/pl.yml
|
104
|
+
- spec/i18n/locale/datetime_spec.rb
|
105
|
+
- spec/i18n/locale/pluralization_spec.rb
|
106
|
+
- spec/locale_spec.rb
|
107
|
+
- spec/polish_spec.rb
|
108
|
+
- spec/spec_helper.rb
|
109
|
+
has_rdoc: true
|
110
|
+
homepage: http://github.com/grk/polish/
|
111
|
+
licenses: []
|
112
|
+
|
113
|
+
post_install_message:
|
114
|
+
rdoc_options: []
|
115
|
+
|
116
|
+
require_paths:
|
117
|
+
- lib
|
118
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: "0"
|
123
|
+
version:
|
124
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: "0"
|
129
|
+
version:
|
130
|
+
requirements: []
|
131
|
+
|
132
|
+
rubyforge_project:
|
133
|
+
rubygems_version: 1.3.5
|
134
|
+
signing_key:
|
135
|
+
specification_version: 3
|
136
|
+
summary: Polish language support for Ruby and Rails
|
137
|
+
test_files: []
|
138
|
+
|