Package translate :: Package storage :: Module pocommon :: Class pofile

[hide private]
[frames] | no frames]

# Class pofile

source code

               object --+
                        |
    base.TranslationStore --+
                            |
               object --+   |
                        |   |
        poheader.poheader --+
                            |
                           pofile

Known Subclasses:
  - pypo.pofile
  - , cpo.pofile

Nested Classes | [hide private]

Inherited from `base.TranslationStore`: `UnitClass`

Instance Methods | [hide private]

makeheader(self, **kwargs) create a header for the given filename. | source code

Inherited from `base.TranslationStore`: `__init__`, `__str__`, `addsourceunit`, `addunit`, `findunit`, `getunits`, `isempty`, `makeindex`, `parse`, `save`, `savefile`, `setsourcelanguage`, `settargetlanguage`, `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 `base.TranslationStore`: `parsefile`, `parsestring`

Class Variables | [hide private]

| Name = ``'``Gettext PO file``'``
| Mimetypes = ``[``'``text/x-gettext-catalog``'``,` `'``text/x-po``'``,` `'``text/x-pot``'``]``
| Extensions = ``[``'``po``'``,` `'``pot``'``]``
Inherited from `poheader.poheader`: `header_order`, `x_generator`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### makeheader(self, **kwargs)

source code

create a header for the given filename. arguments are specially handled, kwargs added as key: value pot_creation_date can be None (current date) or a value (datetime or string) po_revision_date can be None (form), False (=pot_creation_date), True (=now), or a value (datetime or string)