Add pluralisation rules for Arabic. Closes #2592.
This commit is contained in:
parent
c9ea3df043
commit
0c73287c6f
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue