Sha256: 2e9c79b96e770e4d2efb37a851d403f62085d45280c51d4defde926e9c95a449

Contents?: true

Size: 405 Bytes

Versions: 8

Compression:

Stored size: 405 Bytes

Contents

# Hack, ActiveSupport currently uses differrent version
# gem 'i18n', '>= 0.4.1'
# require 'i18n'

require "i18n/backend/pluralization" 
I18n::Backend::Simple.send(:include, I18n::Backend::Pluralization)

I18n.load_path += Dir["#{__FILE__.dirname}/i18n/locales/*/*.{rb,yml}"]


# 
# Helpers for Rad
# 
[Rad::Controller::Abstract, Rad::Controller::Context].each do |klass|
  klass.delegate :t, to: I18n
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
rad_kit-0.0.8 lib/kit/i18n.rb
rad_kit-0.0.7 lib/kit/i18n.rb
rad_ext-0.0.6 lib/rad_ext/extensions/i18n.rb
rad_ext-0.0.5 lib/rad_ext/extensions/i18n.rb
rad_ext-0.0.4 lib/rad_ext/extensions/i18n.rb
rad_ext-0.0.3 lib/rad_ext/extensions/i18n.rb
rad_ext-0.0.2 lib/rad_ext/extensions/i18n.rb
rad_ext-0.0.1 lib/rad_ext/extensions/i18n.rb