Package translate :: Package storage :: Module properties :: Class propfile
[hide private]
[frames] | no frames]

Class propfile

source code


this class represents a .properties file, made up of propunits

Nested Classes [hide private]
  UnitClass
The class of units that will be instantiated and used by this class
Instance Methods [hide private]
 
__init__(self, inputfile=None, personality='java')
construct a propfile, optionally reading in from inputfile
source code
 
parse(self, propsrc, personality='java')
read the source of a properties file in and include them as units
source code
 
__str__(self)
convert the units back to lines
source code

Inherited from base.TranslationStore: __getstate__, __setstate__, add_unit_to_index, addsourceunit, addunit, findunit, findunits, getsourcelanguage, gettargetlanguage, getunits, isempty, makeindex, remove_unit_from_index, require_index, save, savefile, setsourcelanguage, settargetlanguage, translate, unit_iter

Inherited from base.TranslationStore (private): _assignname

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Class Methods [hide private]

Inherited from base.TranslationStore: parsefile, parsestring

Class Variables [hide private]

Inherited from base.TranslationStore: Extensions, Mimetypes, Name, suggestions_in_format

Inherited from base.TranslationStore (private): _binary

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, inputfile=None, personality='java')
(Constructor)

source code 

construct a propfile, optionally reading in from inputfile

Overrides: object.__init__

parse(self, propsrc, personality='java')

source code 

read the source of a properties file in and include them as units

Overrides: base.TranslationStore.parse

__str__(self)
(Informal representation operator)

source code 

convert the units back to lines

Overrides: object.__str__