module RailsI18n::Pluralization::OneTwoOther

def self.rule

def self.rule
  lambda do |n|
    if n == 1
      :one
    elsif n == 2
      :two
    else
      :other
    end
  end
end

def self.with_locale(locale)

def self.with_locale(locale)
  { locale => {
      :'i18n' => {
        :plural => {
          :keys => [:one, :two, :other],
          :rule => rule }}}}
end