Sha256: 2f5c3eb0087e7902e14124d69b153e17324ff8b94b384a5b2f01629e189b0bf7

Contents?: true

Size: 341 Bytes

Versions: 9

Compression:

Stored size: 341 Bytes

Contents

# Used in Hungarian
module RailsI18n
  module Pluralization
    module OnlyOne
      def self.rule
        Proc.new { :one }
      end

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

Version data entries

9 entries across 9 versions & 1 rubygems

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