Class representing a XLIFF file store.
|
|
|
|
|
createfilenode(self,
filename,
sourcelanguage=None,
targetlanguage=None,
datatype=' plaintext ' )
creates a filenode with the given filename. |
source code
|
|
|
getfilename(self,
filenode)
returns the name of the given file |
source code
|
|
|
getfilenames(self)
returns all filenames in this XLIFF file |
source code
|
|
|
getfilenode(self,
filename)
finds the filenode with the given name |
source code
|
|
|
|
|
|
|
removedefaultfile(self)
We want to remove the default file-tag as soon as possible if we know
if still present and empty. |
source code
|
|
|
getheadernode(self,
filenode,
createifmissing=False)
finds the header node for the given filenode |
source code
|
|
|
getbodynode(self,
filenode,
createifmissing=False)
finds the body node for the given filenode |
source code
|
|
TranslationUnit
|
addsourceunit(self,
source,
filename=' NoName ' ,
createifmissing=False)
adds the given trans-unit to the last used body node if the filename
has changed it uses the slow method instead (will create the nodes
required if asked). |
source code
|
|
|
switchfile(self,
filename,
createifmissing=False)
adds the given trans-unit (will create the nodes required if asked). |
source code
|
|
|
creategroup(self,
filename=' NoName ' ,
createifmissing=False,
restype=None)
adds a group tag into the specified file |
source code
|
|
|
|
Inherited from lisa.LISAfile :
addunit ,
initbody ,
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__
|