Sha256: 6401f481e29dd7251a168fe422b09e0ac5cdda94daa9accf690afdede0091a5f

Contents?: true

Size: 529 Bytes

Versions: 15

Compression:

Stored size: 529 Bytes

Contents

module RailsI18n
  module Pluralization
    module UpperSorbian
      def self.rule
        lambda do |n|
          mod100 = n % 100

          if mod100 == 1
            :one
          elsif mod100 == 2
            :two
          elsif mod100 == 3 || mod100 == 4
            :few
          else
            :other
          end
        end
      end
    end
  end
end

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rails-i18n-4.0.3 rails/pluralization/hsb.rb
rails-i18n-3.0.1 rails/pluralization/hsb.rb
rails-i18n-4.0.2 rails/pluralization/hsb.rb
rails-i18n-4.0.1 rails/pluralization/hsb.rb
rails-i18n-3.0.0 rails/pluralization/hsb.rb
rails-i18n-4.0.0 rails/pluralization/hsb.rb
rails-i18n-3.0.0.pre2 rails/pluralization/hsb.rb
rails-i18n-4.0.0.pre2 rails/pluralization/hsb.rb
rails-i18n-4.0.0.pre rails/pluralization/hsb.rb
rails-i18n-3.0.0.pre rails/pluralization/hsb.rb
rails-i18n-0.7.4 rails/pluralization/hsb.rb
rails-i18n-0.7.3 rails/pluralization/hsb.rb
rails-i18n-0.7.2 rails/pluralization/hsb.rb
rails-i18n-0.7.1 rails/pluralization/hsb.rb
rails-i18n-0.7.0 rails/pluralization/hsb.rb