Sha256: bb9b8d3c66ce7d7237620b510b69270a980a1ceb62a6753ce052e23159eb1b38
Contents?: true
Size: 772 Bytes
Versions: 4
Compression:
Stored size: 772 Bytes
Contents
# Path to Globalize2 plugin GLOBALIZE_ROOT = File.join(File.dirname(__FILE__), '../vendor/globalize2') $:.unshift(File.join(GLOBALIZE_ROOT, 'lib')) # Globalize2 plugin is required so we have to load it... require "globalize/load_path" require "globalize/backend/static" require "globalize/model/active_record" require 'globalize/i18n/missing_translations_raise_handler' require File.join(GLOBALIZE_ROOT, 'init') # Internationalization extensions require "globalize/backend/gettext" require "globalize/i18n" # Ruby core extensions require "ruby/string" require "ruby/symbol" # Extend Rails with I18n::Gettext require "rails/extend" # Set gettex backend in I18n I18n.backend = Globalize::Backend::Gettext.new I18n.exception_handler = :missing_translations_raise_handler
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kriss-gettext_i18n-0.2.0 | lib/gettext_i18n.rb |
kriss-gettext_i18n-0.2.1 | lib/gettext_i18n.rb |
kriss-gettext_i18n-0.2.2 | lib/gettext_i18n.rb |
kriss-gettext_i18n-0.2.3 | lib/gettext_i18n.rb |