Package translate :: Package storage :: Module wordfast :: Class WordfastTMFile

[hide private]
[frames] | no frames]

# Class WordfastTMFile

source code

               object --+
                        |
    base.TranslationStore --+
                            |
                           WordfastTMFile

A Wordfast translation memory file

Nested Classes | [hide private]

Inherited from `base.TranslationStore`: `UnitClass`

Instance Methods | [hide private]

__init__(self, inputfile=None, unitclass=<class 'translate.storage.wordfast.WordfastUnit'>) construct a Wordfast TM, optionally reading in from inputfile. | source code

parse(self, input) parsese the given file or file source string | source code

__str__(self) Converts to a string representation that can be parsed back using parsestring(). | source code

Inherited from `base.TranslationStore`: `addsourceunit`, `addunit`, `findunit`, `getunits`, `isempty`, `makeindex`, `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]

| Name = ``'``Wordfast TM file``'``
| Mimetypes = ``[``'``application/x-wordfast``'``]``
| Extensions = ``[``'``txt``'``]``

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, inputfile=None, unitclass=<class 'translate.storage.wordfast.WordfastUnit'>)
(Constructor)

source code

construct a Wordfast TM, optionally reading in from inputfile.

Overrides: object.__init__

### parse(self, input)

source code

parsese the given file or file source string

Overrides: base.TranslationStore.parse

### __str__(self)
(Informal representation operator)

source code

Converts to a string representation that can be parsed back using parsestring().

Overrides: object.__str__
  (inherited documentation)