Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

new language #316

Merged
merged 1 commit into from

4 participants

@abhisheksunkuru

Odiya language added.It is One of the Indian Language.In this One test Is failing says
it { should_not have_missing_pluralization_keys }
NoMethodError:
undefined method `plural_rule_names' for nil:NilClass,
Can u help me out What isthe problem.?

@tigrish

Hi @abhisheksunkuru, the iso gem can't find the locale you're specifying - if this is http://en.wikipedia.org/wiki/Oriya_language , the correct code to use is or.

Update the namespace name and rename the file to or.yml and you should be good to go!

@abhisheksunkuru

thank you @tigrish .problem resolved.

@kuroda kuroda merged commit a41105b into svenfuchs:master
@tusharpucsd

I want to convert my employee timesheet application in marathi, anyone has locale for Hindi/Marathi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 21, 2013
This page is out of date. Refresh to see the latest.
View
3  Gemfile
@@ -1,3 +1,2 @@
source "https://rubygems.org"
-
-gemspec
+gemspec
View
4 README.md
@@ -48,7 +48,7 @@ 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
@@ -56,7 +56,7 @@ 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:
View
199 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
View
3  rails/pluralization/or.rb
@@ -0,0 +1,3 @@
+require 'rails_i18n/common_pluralizations/one_with_zero_other'
+
+::RailsI18n::Pluralization::OneWithZeroOther.with_locale(:or)
View
5 spec/unit/pluralization_spec.rb
@@ -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'
Something went wrong with that request. Please try again.