Method: GetText::Tools::XGetText#run
- Defined in:
- lib/gettext/tools/xgettext.rb
#run(*options) ⇒ Object
:nodoc:
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
# File 'lib/gettext/tools/xgettext.rb', line 281 def run(*) # :nodoc: (*) @output_encoding ||= "UTF-8" pot = generate_pot_header pot << "\n" pot << generate_pot(@input_files) if @output.is_a?(String) File.open(File.(@output), "w+") do |file| file.puts(pot) end else @output.puts(pot) end self end |