Skip to content

Commit ac42ad4

Browse files
author
abhi
committed
new language named odiya(one of Indian language) added
1 parent 07a3ceb commit ac42ad4

File tree

5 files changed

+210
-4
lines changed

5 files changed

+210
-4
lines changed

Gemfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
source "https://rubygems.org"
2-
3-
gemspec
2+
gemspec

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ Available locales are:
4848

4949
> af, ar, az, bg, bn, bs, ca, cs, cy, da, de, de-AT, de-CH, el, en, en-AU, en-CA, en-GB, en-IN, eo,
5050
> es, es-419, es-AR, es-CL, es-CO, es-MX, es-PE, es-VE, et, eu, fa, fi, fr, fr-CA, fr-CH, gl,
51-
> he, hi, hi-IN, hr, hu, id, is, it, it-CH, ja, kn, ko, lo, lt, lv, mk, mn, nb,
51+
> he, hi, hi-IN, hr, hu, id, is, it, it-CH, ja, kn, ko, lo, lt, lv, mk, mn, nb,or
5252
> ne, nl, nn, pl, pt, pt-BR, rm, ro, ru, sk, sl, sr, sv, sw, th,
5353
> tl, tr, uk, uz, vi, wo, zh-CN, zh-TW
5454
5555
Following locales are complete:
5656

5757
> af, ar, az, bg, bs, ca, cs, cy, da, de, de-AT, de-CH, el, en, en-AU, en-CA, en-GB, en-IN, eo,
5858
> es, es-419, es-AR, es-CL, es-CO, es-MX, es-VE, et, eu, fa, fi, fr, fr-CA, fr-CH, he, hi, hi-IN,
59-
> hr, hu, is, it, it-CH, ja, kn, ko, lv, mk, mn, nb, ne, nl, pl, pt, pt-BR, ro, ru, sk, sr, sv, sw,
59+
> hr, hu, is, it, it-CH, ja, kn, ko, lv, mk, mn, nb, ne, nl, or, pl, pt, pt-BR, ro, ru, sk, sr, sv, sw,
6060
> th, tl, tr, uk, uz, vi, wo, zh-CN, zh-TW
6161
6262
Following locales have some missing translations or pluralizations:

rails/locale/or.yml

+199
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
or:
2+
date:
3+
abbr_day_names:
4+
- ରବି
5+
- ସୋମ
6+
- ମଂଗଳ
7+
- ବୁଧ
8+
- ଗୁରୁ
9+
- ଶୁକ୍ର
10+
- ଶନି
11+
abbr_month_names:
12+
-
13+
- ଜାନୁ
14+
- ଫେବରୁ
15+
- ମାର
16+
- ଏପ୍ର
17+
- ମାଈ
18+
- ଜୁନ୍
19+
- ଜୁଲ୍
20+
- ଅଗସ୍ଟ
21+
- ସେପ୍ଟ
22+
- ଅକ୍ଟ
23+
- ନୋଭ
24+
- ଡିସ୍
25+
day_names:
26+
- ରବିବାର
27+
- ସୋମବାର
28+
- ମଗଂଳବାର
29+
- ବୁଧବାର
30+
- ଗୁରୁବାର
31+
- ଶୁକ୍ରବାର
32+
- ଶନିବାର
33+
formats:
34+
default: ! '%Y-%m-%d'
35+
long: ! '%B %d, %Y'
36+
short: ! '%b %d'
37+
month_names:
38+
-
39+
- ଜାନୁୟାରୀ
40+
- ଫେବୃୟାରୀ
41+
- ମାର୍ଚ଼
42+
- ଏପ୍ରଲ
43+
- ମାଈ
44+
- ଜୁନ୍
45+
- ଜୁଲାୟ
46+
- ଅଗଷ୍ତ
47+
- ସେପ୍ଟମ୍ବର୍
48+
- ଅକ୍ଟୋବର୍
49+
- ନୋଭେମ୍ବର
50+
- ଡିସମ୍ବର
51+
order:
52+
- :year
53+
- :month
54+
- :day
55+
datetime:
56+
distance_in_words:
57+
about_x_hours:
58+
one: ପାଖାପାଖି 1 ଘଣ୍ତ
59+
other: ପାଖାପାଖି %{count} ଘଣ୍ତ
60+
about_x_months:
61+
one: ପାଖାପାଖି 1 ମାସ
62+
other: ପାଖାପାଖି %{count} ମାସ
63+
about_x_years:
64+
one: ପାଖାପାଖି 1 year
65+
other: ପାଖାପାଖି %{count} years
66+
almost_x_years:
67+
one: ଅଳ୍ପ ଉଣ 1 ବର୍ଷ
68+
other: ଅଳ୍ପ ଉଣ %{count} ବର୍ଷ
69+
half_a_minute: ଦେଢ ମିନଟ୍
70+
less_than_x_minutes:
71+
one: 1 ମିନଟ ବାକ
72+
other: ! '%{count} ମିନଟ ବାକ'
73+
less_than_x_seconds:
74+
one: 1 ସେକଣ୍ଢ ବାକ
75+
other: ! '%{count} ସେକଣ୍ଢ ବାକ'
76+
over_x_years:
77+
one: 1 ବର୍ଷରୁ ଅଧିକ
78+
other: ! '%{count} ବର୍ଷରୁ ଅଧିକ'
79+
x_days:
80+
one: 1 ଦିନ
81+
other: ! '%{count} ଦିନ'
82+
x_minutes:
83+
one: 1 ମିନଟ
84+
other: ! '%{count} ମିନଟ'
85+
x_months:
86+
one: 1 ମାସ
87+
other: ! '%{count} ମାସ'
88+
x_seconds:
89+
one: 1 ସେକଣ୍ଢ
90+
other: ! '%{count} ସେକଣ୍ଢ'
91+
prompts:
92+
day: ଦିନ
93+
hour: ଘଣ୍ତ
94+
minute: ମିନଟ
95+
month: ମାସ
96+
second: ସେକଣ୍ଢ
97+
year: ବର୍ଷ
98+
errors: &errors
99+
format: ! '%{attribute} %{message}'
100+
messages:
101+
accepted: ଗ୍ରହଣ କରିବାର ଅଛି
102+
blank: ଖାଲି ହେଇ ପାରୀବନ
103+
confirmation: ପ୍ରମାଣ ହେଇନି
104+
empty: ଖାଲି ହେଇପାରିବନି
105+
equal_to: ! '%{count} କୁ ସମାନ'
106+
even: ଯୁଗ୍ମ ହେବାର ଅଛି
107+
exclusion: ସୁରଖିତ ଅଟେ
108+
greater_than: ! '%{count} ରୁ ବଡ ହେବାର ଅଛି'
109+
greater_than_or_equal_to: ! '%{count} ରୁ ବଡ କିମ୍ବା ସମାନ ହେବାର ଅଛି'
110+
inclusion: ସୁଚୀ ରେ ଅନ୍ତର୍ଭୁକ୍ତ ନୁହେଁ
111+
invalid: ଠିକ୍ ନୁହେଁ
112+
less_than: ! '%{count} ରୁ ଛୋଟ'
113+
less_than_or_equal_to: ! '%{count} ରୁ ଛୋଟ କିମ୍ବା ସମାନ ହେବାର ଅଛି'
114+
not_a_number: ସଂଖ୍ଯ ନୁହେଁ
115+
not_an_integer: ଗଣନ ସଂଖ୍ଯା ହେବାର ଅଛି
116+
odd: ଅଯୁଗ୍ମ ହେବାର ଅଛି
117+
record_invalid: ! 'ସଠିକ୍ ନୁହ: %{errors}'
118+
taken: ଗ୍ରହଣ କରା ଯାଇଛି
119+
too_long: ଦିର୍ଘତମ ଅଟେ(ଅତ୍ୟଧୀକ %{count} ଅଖ୍ଯର)
120+
too_short: ଅତି ସଂଖିପ୍ତ ଅଟେ (ଅତ୍ଯଳ୍ପ %{count} ଅଖ୍ଯର ଅଟେ)
121+
wrong_length: ଲମ୍ବା ଭୁଲ ଅଟେ (%{count} ଅଖ୍ଯର ହେବା ଉଚିତ୍)
122+
template:
123+
body: ! 'ନିମ୍ନ ଜାଗା ରେ ଅସୁବିଧା ହେଇଛି:'
124+
header:
125+
one: ! '1 ଭୁଲ ଯଗୁଁ ନିମ୍ନ %{model} ସୁରଖିତ ହେଇପାରି ନଥିଲା'
126+
other: ! '%{count} ଭୁଲ ଯଗୁଁ ଏହି %{model} ସୁରଖିତ ହେଇପାରି ନଥିଲା'
127+
helpers:
128+
select:
129+
prompt: ପସନ୍ଦ କର
130+
submit:
131+
create: ! '%{model} ବନାଅ'
132+
submit: ! '%{model} ସୁରଖିତ କର'
133+
update: ! '%{model} ଅାଧୂନିକରଣ କର'
134+
number:
135+
currency:
136+
format:
137+
delimiter: ! ','
138+
format: ! '%u%n'
139+
precision: 2
140+
separator: .
141+
significant: false
142+
strip_insignificant_zeros: false
143+
unit:
144+
format:
145+
delimiter: ! ','
146+
precision: 3
147+
separator: .
148+
significant: ମିଥ୍ଯା
149+
strip_insignificant_zeros: ମିଥ୍ଯା
150+
human:
151+
decimal_units:
152+
format: ! '%n %u'
153+
units:
154+
billion: ବିଲିୟନ୍
155+
million: ମିଲିୟନ୍
156+
quadrillion: ହଜାର ବିଲିୟନ୍
157+
thousand: ହଜାର
158+
trillion: ଟ୍ରିଲିୟନ୍
159+
unit: ''
160+
format:
161+
delimiter: ''
162+
precision: 3
163+
significant: true
164+
strip_insignificant_zeros: true
165+
storage_units:
166+
format: ! '%n %u'
167+
units:
168+
byte:
169+
one: Byte
170+
other: Bytes
171+
gb: GB
172+
kb: KB
173+
mb: MB
174+
tb: TB
175+
percentage:
176+
format:
177+
delimiter: ''
178+
precision:
179+
format:
180+
delimiter: ''
181+
support:
182+
array:
183+
last_word_connector: ! ', ଏବଂ '
184+
two_words_connector: ! ' ଏବଂ '
185+
words_connector: ! ', '
186+
time:
187+
am: ପୁର୍ଵାହ୍ନ
188+
formats:
189+
default: ! '%a, %d %b %Y %H:%M:%S %z'
190+
long: ! '%B %d, %Y %H:%M'
191+
short: ! '%d %b %H:%M'
192+
pm: ଅପରାହ୍ନ
193+
# remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
194+
activemodel:
195+
errors:
196+
<<: *errors
197+
activerecord:
198+
errors:
199+
<<: *errors

rails/pluralization/or.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require 'rails_i18n/common_pluralizations/one_with_zero_other'
2+
3+
::RailsI18n::Pluralization::OneWithZeroOther.with_locale(:or)

spec/unit/pluralization_spec.rb

+5
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@
285285
it_behaves_like 'other form language'
286286
end
287287

288+
describe 'Odiya', :locale => :or do
289+
it_behaves_like 'an ordinary pluralization rule'
290+
it_behaves_like 'one(with zero)-other forms language'
291+
end
292+
288293
describe 'Igbo', :locale => :ig do
289294
it_behaves_like 'an ordinary pluralization rule'
290295
it_behaves_like 'other form language'

0 commit comments

Comments
 (0)