Sha256: f92c673da6d45edc8fe682cda453cca74f2cf71854d53b9ea0fec740f9138092

Contents?: true

Size: 938 Bytes

Versions: 30

Compression:

Stored size: 938 Bytes

Contents

module GettextI18nRails
  VERSION = File.read( File.join(File.dirname(__FILE__),'..','VERSION') ).strip
  
  extend self
end

require 'fast_gettext'
if Gem::Version.new(FastGettext::VERSION) < Gem::Version.new("0.4.8")
  raise "Please upgrade fast_gettext"
end

# include translations into all the places it needs to go...
Object.send(:include, FastGettext::Translation)

# make translations html_safe if possible and wanted
if "".respond_to?(:html_safe?)
  require 'gettext_i18n_rails/html_safe_translations'
  Object.send(:include, GettextI18nRails::HtmlSafeTranslations)
end

require 'gettext_i18n_rails/backend'
I18n.backend = GettextI18nRails::Backend.new

require 'gettext_i18n_rails/i18n_hacks'
require 'gettext_i18n_rails/active_record' if defined?(ActiveRecord)
require 'gettext_i18n_rails/action_controller' if defined?(ActionController) # so that bundle console can work in a rails project
require 'gettext_i18n_rails/railtie'

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
zena-1.2.8 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails.rb
zena-1.2.7 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails.rb
zena-1.2.6 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails.rb
zena-1.2.5 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails.rb
zena-1.2.4 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails.rb
zena-1.2.3 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails.rb
zena-1.2.2 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails.rb
zena-1.2.1 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails.rb
zena-1.2.0 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails.rb
gettext_i18n_rails-0.3.5 lib/gettext_i18n_rails.rb
gettext_i18n_rails-0.3.4 lib/gettext_i18n_rails.rb
gettext_i18n_rails-0.3.3 lib/gettext_i18n_rails.rb
gettext_i18n_rails-0.3.2 lib/gettext_i18n_rails.rb
gettext_i18n_rails-0.3.1 lib/gettext_i18n_rails.rb
zena-1.1.3 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails.rb
zena-1.1.2 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails.rb
gettext_i18n_rails-0.3.0 lib/gettext_i18n_rails.rb
zena-1.1.1 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails.rb
zena-1.1.0 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails.rb
zena-1.0.0 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails.rb