Package translate :: Package storage :: Module poxliff :: Class PoXliffFile

[hide private]
[frames] | no frames]

# Class PoXliffFile

source code

               object --+
                        |
    base.TranslationStore --+
                            |
                lisa.LISAfile --+
                                |
                  xliff.xlifffile --+
                                    |
                       object --+   |
                                |   |
                poheader.poheader --+
                                    |
                                   PoXliffFile

a file for the po variant of Xliff files

Nested Classes | [hide private]

| UnitClass A class to specifically handle the plural units created from a po file.

Instance Methods | [hide private]

__init__(self, *args, **kwargs) Constructs a blank TranslationStore. | source code

createfilenode(self, filename, sourcelanguage=`'``en-US``'`, datatype=`'``po``'`) creates a filenode with the given filename. | source code

addheaderunit(self, target, filename) | source code

addplural(self, source, target, filename, createifmissing=False) This method should now be unnecessary, but is left for reference | source code

parse(self, xml) Populates this object from the given xml string | source code

Inherited from `xliff.xlifffile`: `__str__`, `addheader`, `addsourceunit`, `creategroup`, `getbodynode`, `getdatatype`, `getdate`, `getfilename`, `getfilenames`, `getfilenode`, `getheadernode`, `removedefaultfile`, `switchfile`

Inherited from `lisa.LISAfile`: `addunit`, `initbody`, `namespaced`, `setsourcelanguage`, `settargetlanguage`

Inherited from `base.TranslationStore`: `findunit`, `getunits`, `isempty`, `makeindex`, `save`, `savefile`, `translate`, `unit_iter`

Inherited from `base.TranslationStore` (private): `_assignname`

Inherited from `poheader.poheader`: `getheaderplural`, `header`, `makeheaderdict`, `mergeheaders`, `parseheader`, `updatecontributor`, `updateheader`, `updateheaderplural`

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

Class Methods | [hide private]

Inherited from `xliff.xlifffile`: `parsestring` Inherited from `base.TranslationStore`: `parsefile`

Class Variables | [hide private]

Inherited from `xliff.xlifffile`: `Extensions`, `Mimetypes`, `Name`, `XMLskeleton`, `bodyNode`, `namespace`, `rootNode` Inherited from `poheader.poheader`: `header_order`, `x_generator`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, *args, **kwargs)
(Constructor)

source code

Constructs a blank TranslationStore.

Overrides: object.__init__
  (inherited documentation)

### createfilenode(self, filename, sourcelanguage=`'``en-US``'`, datatype=`'``po``'`)

source code

creates a filenode with the given filename. All parameters are needed for XLIFF compliance.

Overrides: xliff.xlifffile.createfilenode
  (inherited documentation)

### parse(self, xml)

source code

Populates this object from the given xml string

Overrides: base.TranslationStore.parse