X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3e8b62dbfe5a34c87936b044869af4968f836c6f..4b17b92da09820dd7bf61a640fd37458b82b06fe:/vendor/plugins/globalize2/lib/globalize/backend/pluralizing.rb?ds=sidebyside 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