Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonne Hass <mrzyx@mrzyx.de>2011-09-08 03:58:13 +0400
committerJonne Hass <mrzyx@mrzyx.de>2011-09-08 04:00:46 +0400
commit2addd32274868060ba5265263d6dc0c20bf28b8c (patch)
treea9e513a6f079d670195e1cf31d81d9dd1fab53ca /config/locales/cldr
parentfaa44c0a91a435d80279599f4557fb238d1084a7 (diff)
shit we violoated the LDML
close #1920 * added two to pluralizations, see http://www.unicode.org/reports/tr35/tr35-21.html#Language_Plural_Rules * updated pluralization rules to CLDR 2.0.1
Diffstat (limited to 'config/locales/cldr')
-rw-r--r--config/locales/cldr/br_plurals.rb1
-rw-r--r--config/locales/cldr/cy_plurals.rb2
-rw-r--r--config/locales/cldr/eo_plurals.rb1
-rw-r--r--config/locales/cldr/ga_plurals.rb2
-rw-r--r--config/locales/cldr/mk_plurals.rb2
-rw-r--r--config/locales/cldr/pl_plurals.rb2
6 files changed, 6 insertions, 4 deletions
diff --git a/config/locales/cldr/br_plurals.rb b/config/locales/cldr/br_plurals.rb
new file mode 100644
index 000000000..0c566defe
--- /dev/null
+++ b/config/locales/cldr/br_plurals.rb
@@ -0,0 +1 @@
+{ :br => { :i18n => {:plural => { :keys => [:one, :two, :few, :many, :other], :rule => lambda { |n| n % 10 == 1 && n ? :one : n % 10 == 2 && n ? :two : [3, 4].include?(n % 10) && ![10, 11, 12, 13, 14, 15, 16, 17, 18, 19].include?(n % 100) ? :few : n % 1000000 == 0 && n != 0 ? :many : :other } } } } } \ No newline at end of file
diff --git a/config/locales/cldr/cy_plurals.rb b/config/locales/cldr/cy_plurals.rb
index 72ed2ac4d..b37dba436 100644
--- a/config/locales/cldr/cy_plurals.rb
+++ b/config/locales/cldr/cy_plurals.rb
@@ -1 +1 @@
-{ :cy => { :i18n => {:plural => { :keys => [:one, :two, :many, :other], :rule => lambda { |n| n == 1 ? :one : n == 2 ? :two : n == 8 || n == 11 ? :many : :other } } } } } \ No newline at end of file
+{ :cy => { :i18n => {:plural => { :keys => [:zero, :one, :two, :few, :many, :other], :rule => lambda { |n| n == 0 ? :zero : n == 1 ? :one : n == 2 ? :two : n == 3 ? :few : n == 6 ? :many : :other } } } } } \ No newline at end of file
diff --git a/config/locales/cldr/eo_plurals.rb b/config/locales/cldr/eo_plurals.rb
new file mode 100644
index 000000000..f671f5986
--- /dev/null
+++ b/config/locales/cldr/eo_plurals.rb
@@ -0,0 +1 @@
+{ :eo => { :i18n => {:plural => { :keys => [:one, :other], :rule => lambda { |n| n == 1 ? :one : :other } } } } } \ No newline at end of file
diff --git a/config/locales/cldr/ga_plurals.rb b/config/locales/cldr/ga_plurals.rb
index 1301f8b3e..dae23db87 100644
--- a/config/locales/cldr/ga_plurals.rb
+++ b/config/locales/cldr/ga_plurals.rb
@@ -1 +1 @@
-{ :ga => { :i18n => {:plural => { :keys => [:one, :two, :other], :rule => lambda { |n| n == 1 ? :one : n == 2 ? :two : :other } } } } } \ No newline at end of file
+{ :ga => { :i18n => {:plural => { :keys => [:one, :two, :few, :many, :other], :rule => lambda { |n| n == 1 ? :one : n == 2 ? :two : [3, 4, 5, 6].include?(n) ? :few : [7, 8, 9, 10].include?(n) ? :many : :other } } } } } \ No newline at end of file
diff --git a/config/locales/cldr/mk_plurals.rb b/config/locales/cldr/mk_plurals.rb
index 3b2aeb73c..4095fa169 100644
--- a/config/locales/cldr/mk_plurals.rb
+++ b/config/locales/cldr/mk_plurals.rb
@@ -1 +1 @@
-{ :mk => { :i18n => {:plural => { :keys => [:one, :other], :rule => lambda { |n| n % 10 == 1 ? :one : :other } } } } } \ No newline at end of file
+{ :mk => { :i18n => {:plural => { :keys => [:one, :other], :rule => lambda { |n| n % 10 == 1 && n != 11 ? :one : :other } } } } } \ No newline at end of file
diff --git a/config/locales/cldr/pl_plurals.rb b/config/locales/cldr/pl_plurals.rb
index a27d71967..56f825eb2 100644
--- a/config/locales/cldr/pl_plurals.rb
+++ b/config/locales/cldr/pl_plurals.rb
@@ -1 +1 @@
-{ :pl => { :i18n => {:plural => { :keys => [:one, :few, :other], :rule => lambda { |n| n == 1 ? :one : [2, 3, 4].include?(n % 10) && ![12, 13, 14].include?(n % 100) && ![22, 23, 24].include?(n % 100) ? :few : :other } } } } } \ No newline at end of file
+{ :pl => { :i18n => {:plural => { :keys => [:one, :few, :many, :other], :rule => lambda { |n| n == 1 ? :one : [2, 3, 4].include?(n % 10) && ![12, 13, 14].include?(n % 100) ? :few : n != 1 && [0, 1].include?(n % 10) || [5, 6, 7, 8, 9].include?(n % 10) || [12, 13, 14].include?(n % 100) ? :many : :other } } } } } \ No newline at end of file