Skip to content

Commit

Permalink
Merge pull request #316 from abhisheksunkuru/odiya_lang
Browse files Browse the repository at this point in the history
The locale data for Oriya (`or` ) is added.
  • Loading branch information
kuroda committed Mar 22, 2013
2 parents 07a3ceb + ac42ad4 commit a41105b
Show file tree
Hide file tree
Showing 5 changed files with 210 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Gemfile
@@ -1,3 +1,2 @@
source "https://rubygems.org"

gemspec
gemspec
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -48,15 +48,15 @@ Available locales are:

> 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,
> 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,
> he, hi, hi-IN, hr, hu, id, is, it, it-CH, ja, kn, ko, lo, lt, lv, mk, mn, nb,
> he, hi, hi-IN, hr, hu, id, is, it, it-CH, ja, kn, ko, lo, lt, lv, mk, mn, nb,or
> ne, nl, nn, pl, pt, pt-BR, rm, ro, ru, sk, sl, sr, sv, sw, th,
> tl, tr, uk, uz, vi, wo, zh-CN, zh-TW
Following locales are complete:

> 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,
> 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,
> 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,
> 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,
> th, tl, tr, uk, uz, vi, wo, zh-CN, zh-TW
Following locales have some missing translations or pluralizations:
Expand Down
199 changes: 199 additions & 0 deletions rails/locale/or.yml
@@ -0,0 +1,199 @@
or:
date:
abbr_day_names:
- ରବି
- ସୋମ
- ମଂଗଳ
- ବୁଧ
- ଗୁରୁ
- ଶୁକ୍ର
- ଶନି
abbr_month_names:
-
- ଜାନୁ
- ଫେବରୁ
- ମାର
- ଏପ୍ର
- ମାଈ
- ଜୁନ୍
- ଜୁଲ୍
- ଅଗସ୍ଟ
- ସେପ୍ଟ
- ଅକ୍ଟ
- ନୋଭ
- ଡିସ୍
day_names:
- ରବିବାର
- ସୋମବାର
- ମଗଂଳବାର
- ବୁଧବାର
- ଗୁରୁବାର
- ଶୁକ୍ରବାର
- ଶନିବାର
formats:
default: ! '%Y-%m-%d'
long: ! '%B %d, %Y'
short: ! '%b %d'
month_names:
-
- ଜାନୁୟାରୀ
- ଫେବୃୟାରୀ
- ମାର୍ଚ଼
- ଏପ୍ରଲ
- ମାଈ
- ଜୁନ୍
- ଜୁଲାୟ
- ଅଗଷ୍ତ
- ସେପ୍ଟମ୍ବର୍
- ଅକ୍ଟୋବର୍
- ନୋଭେମ୍ବର
- ଡିସମ୍ବର
order:
- :year
- :month
- :day
datetime:
distance_in_words:
about_x_hours:
one: ପାଖାପାଖି 1 ଘଣ୍ତ
other: ପାଖାପାଖି %{count} ଘଣ୍ତ
about_x_months:
one: ପାଖାପାଖି 1 ମାସ
other: ପାଖାପାଖି %{count} ମାସ
about_x_years:
one: ପାଖାପାଖି 1 year
other: ପାଖାପାଖି %{count} years
almost_x_years:
one: ଅଳ୍ପ ଉଣ 1 ବର୍ଷ
other: ଅଳ୍ପ ଉଣ %{count} ବର୍ଷ
half_a_minute: ଦେଢ ମିନଟ୍
less_than_x_minutes:
one: 1 ମିନଟ ବାକ
other: ! '%{count} ମିନଟ ବାକ'
less_than_x_seconds:
one: 1 ସେକଣ୍ଢ ବାକ
other: ! '%{count} ସେକଣ୍ଢ ବାକ'
over_x_years:
one: 1 ବର୍ଷରୁ ଅଧିକ
other: ! '%{count} ବର୍ଷରୁ ଅଧିକ'
x_days:
one: 1 ଦିନ
other: ! '%{count} ଦିନ'
x_minutes:
one: 1 ମିନଟ
other: ! '%{count} ମିନଟ'
x_months:
one: 1 ମାସ
other: ! '%{count} ମାସ'
x_seconds:
one: 1 ସେକଣ୍ଢ
other: ! '%{count} ସେକଣ୍ଢ'
prompts:
day: ଦିନ
hour: ଘଣ୍ତ
minute: ମିନଟ
month: ମାସ
second: ସେକଣ୍ଢ
year: ବର୍ଷ
errors: &errors
format: ! '%{attribute} %{message}'
messages:
accepted: ଗ୍ରହଣ କରିବାର ଅଛି
blank: ଖାଲି ହେଇ ପାରୀବନ
confirmation: ପ୍ରମାଣ ହେଇନି
empty: ଖାଲି ହେଇପାରିବନି
equal_to: ! '%{count} କୁ ସମାନ'
even: ଯୁଗ୍ମ ହେବାର ଅଛି
exclusion: ସୁରଖିତ ଅଟେ
greater_than: ! '%{count} ରୁ ବଡ ହେବାର ଅଛି'
greater_than_or_equal_to: ! '%{count} ରୁ ବଡ କିମ୍ବା ସମାନ ହେବାର ଅଛି'
inclusion: ସୁଚୀ ରେ ଅନ୍ତର୍ଭୁକ୍ତ ନୁହେଁ
invalid: ଠିକ୍ ନୁହେଁ
less_than: ! '%{count} ରୁ ଛୋଟ'
less_than_or_equal_to: ! '%{count} ରୁ ଛୋଟ କିମ୍ବା ସମାନ ହେବାର ଅଛି'
not_a_number: ସଂଖ୍ଯ ନୁହେଁ
not_an_integer: ଗଣନ ସଂଖ୍ଯା ହେବାର ଅଛି
odd: ଅଯୁଗ୍ମ ହେବାର ଅଛି
record_invalid: ! 'ସଠିକ୍ ନୁହ: %{errors}'
taken: ଗ୍ରହଣ କରା ଯାଇଛି
too_long: ଦିର୍ଘତମ ଅଟେ(ଅତ୍ୟଧୀକ %{count} ଅଖ୍ଯର)
too_short: ଅତି ସଂଖିପ୍ତ ଅଟେ (ଅତ୍ଯଳ୍ପ %{count} ଅଖ୍ଯର ଅଟେ)
wrong_length: ଲମ୍ବା ଭୁଲ ଅଟେ (%{count} ଅଖ୍ଯର ହେବା ଉଚିତ୍)
template:
body: ! 'ନିମ୍ନ ଜାଗା ରେ ଅସୁବିଧା ହେଇଛି:'
header:
one: ! '1 ଭୁଲ ଯଗୁଁ ନିମ୍ନ %{model} ସୁରଖିତ ହେଇପାରି ନଥିଲା'
other: ! '%{count} ଭୁଲ ଯଗୁଁ ଏହି %{model} ସୁରଖିତ ହେଇପାରି ନଥିଲା'
helpers:
select:
prompt: ପସନ୍ଦ କର
submit:
create: ! '%{model} ବନାଅ'
submit: ! '%{model} ସୁରଖିତ କର'
update: ! '%{model} ଅାଧୂନିକରଣ କର'
number:
currency:
format:
delimiter: ! ','
format: ! '%u%n'
precision: 2
separator: .
significant: false
strip_insignificant_zeros: false
unit:
format:
delimiter: ! ','
precision: 3
separator: .
significant: ମିଥ୍ଯା
strip_insignificant_zeros: ମିଥ୍ଯା
human:
decimal_units:
format: ! '%n %u'
units:
billion: ବିଲିୟନ୍
million: ମିଲିୟନ୍
quadrillion: ହଜାର ବିଲିୟନ୍
thousand: ହଜାର
trillion: ଟ୍ରିଲିୟନ୍
unit: ''
format:
delimiter: ''
precision: 3
significant: true
strip_insignificant_zeros: true
storage_units:
format: ! '%n %u'
units:
byte:
one: Byte
other: Bytes
gb: GB
kb: KB
mb: MB
tb: TB
percentage:
format:
delimiter: ''
precision:
format:
delimiter: ''
support:
array:
last_word_connector: ! ', ଏବଂ '
two_words_connector: ! ' ଏବଂ '
words_connector: ! ', '
time:
am: ପୁର୍ଵାହ୍ନ
formats:
default: ! '%a, %d %b %Y %H:%M:%S %z'
long: ! '%B %d, %Y %H:%M'
short: ! '%d %b %H:%M'
pm: ଅପରାହ୍ନ
# remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
activemodel:
errors:
<<: *errors
activerecord:
errors:
<<: *errors
3 changes: 3 additions & 0 deletions rails/pluralization/or.rb
@@ -0,0 +1,3 @@
require 'rails_i18n/common_pluralizations/one_with_zero_other'

::RailsI18n::Pluralization::OneWithZeroOther.with_locale(:or)
5 changes: 5 additions & 0 deletions spec/unit/pluralization_spec.rb
Expand Up @@ -285,6 +285,11 @@
it_behaves_like 'other form language'
end

describe 'Odiya', :locale => :or do
it_behaves_like 'an ordinary pluralization rule'
it_behaves_like 'one(with zero)-other forms language'
end

describe 'Igbo', :locale => :ig do
it_behaves_like 'an ordinary pluralization rule'
it_behaves_like 'other form language'
Expand Down

0 comments on commit a41105b

Please sign in to comment.