Module: GettextI18nRails::GettextHooks

### Home Classes Methods

### In Files

- lib/gettext_i18n_rails/gettext_hooks.rb

### Methods

- ::add_parser
- ::xgettext

### Class/Module Index

Quicksearch

- GettextI18nRails
- GettextI18nRails::Backend
- GettextI18nRails::BaseParser
- GettextI18nRails::GettextHooks
- GettextI18nRails::HamlParser
- GettextI18nRails::HtmlSafeTranslations
- GettextI18nRails::ModelAttributesFinder
- GettextI18nRails::Railtie
- GettextI18nRails::SlimParser
- RubyGettextExtractor
- RubyGettextExtractor::Extractor18
- RubyGettextExtractor::Extractor19
- RubyGettextExtractor::ExtractorMethods
- ActionController
- ActionController::Base
- ActiveModel
- ActiveModel::Translation
- ActiveRecord
- ActiveRecord::Base
- I18n
- I18n::Config
- Object
- String

No matching classes.

# GettextI18nRails::GettextHooks

### Public Class Methods

add_parser(parser) click to toggle source

shoarter call / maybe the interface changes again ...

    # File lib/gettext_i18n_rails/gettext_hooks.rb, line 4
    def self.add_parser(parser)
      xgettext.add_parser(parser)
    end

xgettext() click to toggle source

    # File lib/gettext_i18n_rails/gettext_hooks.rb, line 8
    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

[Validate]

Generated with the Darkfish Rdoc Generator 2.