Sha256: 6cffcd456dbaf3a26b084eb0ef840e14989a580fe477fff359d81789164263b8
Contents?: true
Size: 829 Bytes
Versions: 4
Compression:
Stored size: 829 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' require 'gettext_i18n_rails/action_controller' require 'gettext_i18n_rails/railtie'
Version data entries
4 entries across 4 versions & 1 rubygems