Object
@private
The result is written back to def.po.
--backup=CONTROL make a backup of def.po --suffix=SUFFIX override the usual backup suffix
The version control method may be selected via the --backup option or through the VERSION_CONTROL environment variable. Here are the values:
none, off never make backups (even if --backup is given) numbered, t make numbered backups existing, nil numbered if numbered backups exist, simple otherwise simple, never always make simple backups
The backup suffix is `~', unless set with --suffix or the SIMPLE_BACKUP_SUFFIX environment variable.
# File lib/gettext/tools/msgmerge.rb, line 276 def initialize @definition_po = nil @reference_po = nil @update = false @output = nil @order = :reference @po_format_options = { :max_line_width => POEntry::Formatter::DEFAULT_MAX_LINE_WIDTH, } @enable_fuzzy_matching = true @update = nil @output_obsolete_entries = true @backup = ENV["VERSION_CONTROL"] @suffix = ENV["SIMPLE_BACKUP_SUFFIX"] || "~" @input_dirs = ["."] end
@return [Bool] true if fuzzy matching is enabled, false otherwise.
# File lib/gettext/tools/msgmerge.rb, line 307 def enable_fuzzy_matching? @enable_fuzzy_matching end
@return [Bool] true if outputting obsolete entries is
enabled, false otherwise.
# File lib/gettext/tools/msgmerge.rb, line 313 def output_obsolete_entries? @output_obsolete_entries end
# File lib/gettext/tools/msgmerge.rb, line 293 def parse(command_line) parser = create_option_parser rest = parser.parse(command_line) if rest.size != 2 puts(parser.help) exit(false) end @definition_po, @reference_pot = rest @output = @definition_po if @update end
Generated with the Darkfish Rdoc Generator 2.