From 0c73287c6fa6cfc967b5225a5dc411e0339959ad Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 2 Jan 2010 11:57:05 +0000 Subject: [PATCH] Add pluralisation rules for Arabic. Closes #2592. --- .../globalize2/lib/globalize/backend/pluralizing.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vendor/plugins/globalize2/lib/globalize/backend/pluralizing.rb b/vendor/plugins/globalize2/lib/globalize/backend/pluralizing.rb index 9dd9bb667..cbe31a511 100644 --- a/vendor/plugins/globalize2/lib/globalize/backend/pluralizing.rb +++ b/vendor/plugins/globalize2/lib/globalize/backend/pluralizing.rb @@ -33,6 +33,17 @@ module Globalize else :other end }, + :ar => lambda { |count, entry| + case count + when 1 then :one + when 2 then :two + else case count % 100 + when 3..10 then :few + when 11..99 then :many + else :other + end + end + }, :ru => lambda { |count, entry| case count % 100 when 11,12,13,14 then :many -- 2.43.2