Class: GetText::RMsgMerge::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/gettext/tools/rmsgmerge.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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.



375
376
377
378
379
380
381
382
# File 'lib/gettext/tools/rmsgmerge.rb', line 375

def initialize
  @output = STDOUT
  @fuzzy = nil
  @update = nil
  @backup = ENV["VERSION_CONTROL"]
  @suffix= ENV["SIMPLE_BACKUP_SUFFIX"] || "~"
  @input_dirs = ["."]
end

Instance Attribute Details

#backupObject

update mode options



359
360
361
# File 'lib/gettext/tools/rmsgmerge.rb', line 359

def backup
  @backup
end

#defpoObject

Returns the value of attribute defpo.



356
357
358
# File 'lib/gettext/tools/rmsgmerge.rb', line 356

def defpo
  @defpo
end

#fuzzyObject

Returns the value of attribute fuzzy.



356
357
358
# File 'lib/gettext/tools/rmsgmerge.rb', line 356

def fuzzy
  @fuzzy
end

#outputObject

Returns the value of attribute output.



356
357
358
# File 'lib/gettext/tools/rmsgmerge.rb', line 356

def output
  @output
end

#refpotObject

Returns the value of attribute refpot.



356
357
358
# File 'lib/gettext/tools/rmsgmerge.rb', line 356

def refpot
  @refpot
end

#suffixObject

update mode options



359
360
361
# File 'lib/gettext/tools/rmsgmerge.rb', line 359

def suffix
  @suffix
end

#updateObject

Returns the value of attribute update.



356
357
358
# File 'lib/gettext/tools/rmsgmerge.rb', line 356

def update
  @update
end