Sha256: 28075ff4f71e9f6d1e41a227ac52edbf422a2a7420e5be5ac916c4aa2199e0a7
Contents?: true
Size: 568 Bytes
Versions: 36
Compression:
Stored size: 568 Bytes
Contents
module GettextI18nRails module GettextHooks # shoarter call / maybe the interface changes again ... def self.add_parser(parser) xgettext.add_parser(parser) end def self.xgettext @xgettext ||= begin require 'gettext/tools/xgettext' # 2.3+ GetText::Tools::XGetText rescue LoadError begin require 'gettext/tools/rgettext' # 2.0 - 2.2 GetText::RGetText rescue LoadError # # 1.x require 'gettext/rgettext' GetText::RGetText end end end end end
Version data entries
36 entries across 36 versions & 1 rubygems