Base class for stores for multiple translation units of type
UnitClass.
|
|
|
setsourcelanguage(self,
sourcelanguage)
Sets the source language for this store |
source code
|
|
|
settargetlanguage(self,
targetlanguage)
Sets the target language for this store |
source code
|
|
|
unit_iter(self)
Iterator over all the units in this store. |
source code
|
|
|
getunits(self)
Return a list of all units in this store. |
source code
|
|
|
|
TranslationUnit
|
addsourceunit(self,
source)
Adds and returns a new unit with the given source string. |
source code
|
|
TranslationUnit or None
|
findunit(self,
source)
Finds the unit with the given source string. |
source code
|
|
String or None
|
translate(self,
source)
Returns the translated string for a given source string. |
source code
|
|
|
|
|
|
|
isempty(self)
Returns True if the object doesn't contain any translation units. |
source code
|
|
|
_assignname(self)
Tries to work out what the name of the filesystem file is and assigns
it to .filename. |
source code
|
|
|
parse(self,
data)
parser to process the given source string |
source code
|
|
|
savefile(self,
storefile)
Writes the string representation to the given file (or filename). |
source code
|
|
|
save(self)
Save to the file that data was originally read from, if available. |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__
|