Sha256: 0fb757b3542878b7dc9e976d4b85428c75c1d13594ddf770122e27f44d769213

Contents?: true

Size: 521 Bytes

Versions: 25

Compression:

Stored size: 521 Bytes

Contents

module RailsI18n
  module Pluralization
    module Slovenian
      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

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
rails-i18n-4.0.3 rails/pluralization/sl.rb
rails-i18n-3.0.1 rails/pluralization/sl.rb
rails-i18n-4.0.2 rails/pluralization/sl.rb
rails-i18n-4.0.1 rails/pluralization/sl.rb
rails-i18n-3.0.0 rails/pluralization/sl.rb
rails-i18n-4.0.0 rails/pluralization/sl.rb
rails-i18n-3.0.0.pre2 rails/pluralization/sl.rb
rails-i18n-4.0.0.pre2 rails/pluralization/sl.rb
rails-i18n-4.0.0.pre rails/pluralization/sl.rb
rails-i18n-3.0.0.pre rails/pluralization/sl.rb
rails-i18n-0.7.4 rails/pluralization/sl.rb
rails-i18n-0.7.3 rails/pluralization/sl.rb
rails-i18n-0.7.2 rails/pluralization/sl.rb
rails-i18n-0.7.1 rails/pluralization/sl.rb
rails-i18n-0.7.0 rails/pluralization/sl.rb
rails-i18n-0.6.6 rails/pluralization/sl.rb
rails-i18n-0.6.5 rails/pluralization/sl.rb
rails-i18n-0.6.4 rails/pluralization/sl.rb
rails-i18n-0.6.3 rails/pluralization/sl.rb
rails-i18n-0.6.2 rails/pluralization/sl.rb