aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorSven Fuchs <svenfuchs@artweb-design.de>2008-08-23 19:43:57 +0200
committerMichael Koziarski <michael@koziarski.com>2008-08-23 21:23:00 +0200
commitd6989aa0e1fe5e49fe1fccc3702aa7ff62a63faf (patch)
tree591897097513ca99f3655fe6b74bdd440f5adb0a /activesupport/lib
parentb1f3c6e6ec08a40fc7153ee3ba78d51b466a58e6 (diff)
downloadrails-d6989aa0e1fe5e49fe1fccc3702aa7ff62a63faf.tar.gz
rails-d6989aa0e1fe5e49fe1fccc3702aa7ff62a63faf.tar.bz2
rails-d6989aa0e1fe5e49fe1fccc3702aa7ff62a63faf.zip
I18n: use :other instead of :many as default key for pluralization to better conform w/ cldr pluralization rules
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb b/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb
index 63ef55631f..6c7c54777c 100644
--- a/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb
+++ b/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb
@@ -104,7 +104,7 @@ module I18n
return entry unless entry.is_a?(Hash) and count
# raise InvalidPluralizationData.new(entry, count) unless entry.is_a?(Hash)
key = :zero if count == 0 && entry.has_key?(:zero)
- key ||= count == 1 ? :one : :many
+ key ||= count == 1 ? :one : :other
raise InvalidPluralizationData.new(entry, count) unless entry.has_key?(key)
entry[key]
end