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

Version Path
gettext_i18n_rails-1.11.0 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.10.1 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.10.0 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.9.0 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.8.1 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.8.0 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.7.2 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.7.1 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.7.0 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.6.0 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.5.0 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.4.0 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.3.2 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.3.1 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.3.0 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.2.3 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.2.2 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.2.1 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.2.0 lib/gettext_i18n_rails/gettext_hooks.rb
gettext_i18n_rails-1.1.0 lib/gettext_i18n_rails/gettext_hooks.rb