Class representing a QPH file store.
|
|
|
|
|
|
|
|
createcontext(self,
contextname,
comment=None)
Creates a context node with an optional comment |
source code
|
|
|
|
getcontextname(self,
contextnode)
Returns the name of the given context. |
source code
|
|
|
|
getcontextnames(self)
Returns all contextnames in this TS file. |
source code
|
|
|
|
getcontextnode(self,
contextname)
Finds the contextnode with the given name. |
source code
|
|
|
|
addunit(self,
unit,
new=True,
contextname=None,
createifmissing=False)
adds the given trans-unit to the last used body node if the
contextname has changed it uses the slow method instead (will create
the nodes required if asked). |
source code
|
|
|
|
switchcontext(self,
contextname,
createifmissing=False)
Switch the current context to the one named contextname, optionally
creating it if it doesn't exist. |
source code
|
|
|
Inherited from lisa.LISAfile:
__str__,
addheader,
addsourceunit,
namespaced,
parse,
setsourcelanguage,
settargetlanguage
Inherited from base.TranslationStore:
findunit,
getunits,
isempty,
makeindex,
save,
savefile,
translate,
unit_iter
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__
|