Sha256: 7198deb4cb745842911d6a36a33eb7aaa29bb19bf19423ce0cb6a4b5af5c37f9

Contents?: true

Size: 643 Bytes

Versions: 11

Compression:

Stored size: 643 Bytes

Contents

# Used for Cornish, Inari Sami, Inuktitut, Lule Sami, Nama, Northern Sami,
# Sami Language, Skolt Sami, Southern Sami.

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rails-i18n-0.7.0 lib/rails_i18n/common_pluralizations/one_two_other.rb
rails-i18n-0.6.6 lib/rails_i18n/common_pluralizations/one_two_other.rb
rails-i18n-0.6.5 lib/rails_i18n/common_pluralizations/one_two_other.rb
rails-i18n-0.6.4 lib/rails_i18n/common_pluralizations/one_two_other.rb
rails-i18n-0.6.3 lib/rails_i18n/common_pluralizations/one_two_other.rb
rails-i18n-0.6.2 lib/rails_i18n/common_pluralizations/one_two_other.rb
rails-i18n-0.6.1 lib/rails_i18n/common_pluralizations/one_two_other.rb
rails-i18n-0.6.0.beta1 lib/rails_i18n/common_pluralizations/one_two_other.rb
rails-i18n-0.5.2 lib/rails_i18n/common_pluralizations/one_two_other.rb
rails-i18n-0.5.1 lib/rails_i18n/common_pluralizations/one_two_other.rb
rails-i18n-0.5.0.beta1 lib/rails_i18n/common_pluralizations/one_two_other.rb