This class implements functionality for manipulation of po file
headers. This class is a mix-in class and useless on its own. It must be
used from all classes which represent a po file
dict
|
makeheaderdict(self,
charset=' CHARSET ' ,
encoding=' ENCODING ' ,
project_id_version=None,
pot_creation_date=None,
po_revision_date=None,
last_translator=None,
language_team=None,
mime_version=None,
plural_forms=None,
report_msgid_bugs_to=None,
**kwargs)
Create a header dictionary with useful defaults. |
source code
|
|
|
|
|
parseheader(self)
Parses the PO header and returns the interpreted values as a
dictionary. |
source code
|
|
|
|
|
getheaderplural(self)
Returns the nplural and plural values from the header. |
source code
|
|
|
updateheaderplural(self,
nplurals,
plural)
Update the Plural-Form PO header. |
source code
|
|
|
|
|
|
|
|
|
updatecontributor(self,
name,
email=None)
Add contribution comments if necessary. |
source code
|
|
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__init__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|