Package translate :: Package storage :: Module qm :: Class qmfile

[hide private]
[frames] | no frames]

# Class qmfile

source code

               object --+
                        |
    base.TranslationStore --+
                            |
                           qmfile

A class representing a .qm file.

Nested Classes | [hide private]

| UnitClass A class representing a .qm translation message.

Instance Methods | [hide private]

__init__(self, inputfile=None, unitclass=<class 'translate.storage.qm.qmunit'>) Constructs a blank TranslationStore. | source code

__str__(self) Output a string representation of the .qm data file | source code

parse(self, input) parses the given file or file source string | 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]

| Mimetypes = ``[``'``application/x-qm``'``]``
| Extensions = ``[``'``qm``'``]``

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

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

source code

Constructs a blank TranslationStore.

Overrides: object.__init__
  (inherited documentation)

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

source code

Output a string representation of the .qm data file

Overrides: object.__str__

### parse(self, input)

source code

parses the given file or file source string

Overrides: base.TranslationStore.parse