Method: GetText::Tools::XGetText#parse

Defined in:
lib/gettext/tools/xgettext.rb

#parse(paths) ⇒ Object

:nodoc:



162
163
164
165
166
167
168
169
170
171
172
173
174
# File 'lib/gettext/tools/xgettext.rb', line 162

def parse(paths) # :nodoc:
  po = PO.new
  paths = [paths] if paths.kind_of?(String)
  paths.each do |path|
    begin
      parse_path(path, po)
    rescue
      puts(_("Error parsing %{path}") % {:path => path})
      raise
    end
  end
  po
end