module RailsI18n::Pluralization::Romanian
Public Class Methods
rule()
click to toggle source
# File lib/rails_i18n/common_pluralizations/romanian.rb, line 6 def self.rule lambda do |n| n ||= 0 if n == 1 :one elsif n == 0 || (1..19).to_a.include?(n % 100) :few else :other end end end
with_locale(locale)
click to toggle source
# File lib/rails_i18n/common_pluralizations/romanian.rb, line 19 def self.with_locale(locale) { locale => { :'i18n' => { :plural => { :keys => [:one, :few, :other], :rule => rule }}}} end