+ @pluralizers ||= {
+ :en => lambda { |count, entry|
+ case count
+ when 1 then entry.has_key?(:one) ? :one : :other
+ else :other
+ end
+ },
+ :sl => lambda { |count, entry|
+ case count % 100
+ when 1 then entry.has_key?(:one) ? :one : :other
+ when 2 then entry.has_key?(:two) ? :two : :other
+ when 3,4 then entry.has_key?(:few) ? :few : :other
+ else :other
+ end
+ }
+ }