A class to specifically handle the plural units created from a po
file.
|
__init__(self,
source,
empty=False)
Constructs a unit containing the given source string |
source code
|
|
Boolean
|
|
|
|
|
|
|
|
|
|
|
gettranslatorcomments(self)
Returns the translator comments (x-po-trancomment), which corresponds
to the # style po comments. |
source code
|
|
|
|
|
|
Inherited from xliff.xliffunit :
addalttrans ,
correctorigin ,
createcontextgroup ,
createlanguageNode ,
delalttrans ,
getalttrans ,
getcontextgroups ,
getid ,
getlanguageNodes ,
getrestype ,
isapproved ,
isfuzzy ,
isreview ,
istranslatable ,
markapproved ,
markreviewneeded ,
merge
Inherited from lisa.LISAunit :
__str__ ,
createPHnodes ,
getNodeText ,
getlanguageNode ,
namespaced
Inherited from base.TranslationUnit :
getcontext ,
getunits ,
isblank ,
istranslated ,
unit_iter
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__
|
|
|
|
|
Inherited from base.TranslationUnit :
getsourcelanguage
|
|
settarget(self,
text,
lang=' xx ' ,
append=False)
Sets the target string to the given value. |
source code
|
|
|
gettarget(self)
retrieves the "target" text (second entry), or the entry in
the specified language, if it exists |
source code
|
|
Inherited from base.TranslationUnit :
gettargetlanguage ,
gettargetlen
|
|
|
|
|
Inherited from xliff.xliffunit :
getnotelist ,
removenotes
|
List
|
|
Inherited from xliff.xliffunit :
addlocation
Inherited from base.TranslationUnit :
addlocations
|
Inherited from xliff.xliffunit :
adderror ,
geterrors
|