Sha256: e7f31e35fa5de7b523a5af9f97d946f060a79daff4bfbddbca9d29f504d7e44c

Contents?: true

Size: 531 Bytes

Versions: 51

Compression:

Stored size: 531 Bytes

Contents

module RailsI18n
  module Pluralization
    module ScottishGaelic
      def self.rule
        lambda do |n|
          if n == 1 || n == 11
            :one
          elsif n == 2 || n == 12
            :two
          elsif ((3..10).to_a + (13..19).to_a).include?(n)
            :few
          else
            :other
          end
        end
      end
    end
  end
end

{ :gd => {
    :'i18n' => {
      :plural => {
        :keys => [:one, :two, :few, :other],
        :rule => RailsI18n::Pluralization::ScottishGaelic.rule }}}}

Version data entries

51 entries across 51 versions & 2 rubygems

Version Path
rails-i18n-0.7.0 rails/pluralization/gd.rb
rails-i18n-0.6.6 rails/pluralization/gd.rb
rails-i18n-0.6.5 rails/pluralization/gd.rb
rails-i18n-0.6.4 rails/pluralization/gd.rb
rails-i18n-0.6.3 rails/pluralization/gd.rb
rails-i18n-0.6.2 rails/pluralization/gd.rb
rails-i18n-0.6.1 rails/pluralization/gd.rb
rails-i18n-0.6.0.beta1 rails/pluralization/gd.rb
rails-i18n-0.5.2 rails/pluralization/gd.rb
rails-i18n-0.5.1 rails/pluralization/gd.rb
rails-i18n-0.5.0.beta1 rails/pluralization/gd.rb