Module: GettextI18nRails::GettextHooks
- Defined in:
- lib/gettext_i18n_rails/gettext_hooks.rb
Class Method Summary collapse
-
.add_parser(parser) ⇒ Object
shorter call / maybe the interface changes again …
- .xgettext ⇒ Object
Class Method Details
.add_parser(parser) ⇒ Object
shorter call / maybe the interface changes again …
4 5 6 |
# File 'lib/gettext_i18n_rails/gettext_hooks.rb', line 4 def self.add_parser(parser) xgettext.add_parser(parser) end |
.xgettext ⇒ Object
8 9 10 11 12 13 |
# File 'lib/gettext_i18n_rails/gettext_hooks.rb', line 8 def self.xgettext @xgettext ||= begin require 'gettext/tools/xgettext' GetText::Tools::XGetText end end |