File: gettext_hooks.rb

package info (click to toggle)
ruby-gettext-i18n-rails 1.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 148 kB
  • sloc: ruby: 515; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 330 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module GettextI18nRails
  module GettextHooks
    # shorter 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'
        GetText::Tools::XGetText
      end
    end
  end
end