Class representing a XLIFF file store.
|
|
|
|
|
|
|
String
|
|
|
String
|
|
|
|
|
|
|
_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 node. |
source code
|
|
|
|
_getcontextnames(self)
Returns all contextnames in this TS file. |
source code
|
|
|
|
_getcontextnode(self,
contextname)
Returns the context node with the given name. |
source code
|
|
|
|
addunit(self,
unit,
new=True,
contextname=None,
createifmissing=True)
Adds the given unit to the last used body node (current context). |
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:
addheader,
addsourceunit,
namespaced,
parse
Inherited from base.TranslationStore:
__getstate__,
__setstate__,
add_unit_to_index,
detect_encoding,
findid,
findunit,
findunits,
getids,
getprojectstyle,
getunits,
isempty,
makeindex,
remove_unit_from_index,
require_index,
save,
savefile,
setprojectstyle,
setsourcelanguage,
translate,
unit_iter
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__subclasshook__
|