A class to specifically handle the plural units created from a po
file.
|
|
__init__(self,
source=None,
empty=False,
encoding="UTF-8")
Override the constructor to set xml:space="preserve". |
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,
markapproved,
markreviewneeded,
merge
Inherited from lisa.LISAunit:
__str__,
createPHnodes,
getNodeText,
getlanguageNode,
namespaced
Inherited from lisa.LISAunit (private):
_set_property
Inherited from base.TranslationUnit:
getcontext,
getunits,
isblank,
isobsolete,
istranslated,
makeobsolete,
setcontext,
unit_iter
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__
|
|
|
|
|
|
|
|
Inherited from xliff.xliffunit:
get_rich_source,
set_rich_source
Inherited from lisa.LISAunit:
get_source_dom,
set_source_dom
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 xliff.xliffunit:
get_rich_target,
set_rich_target
Inherited from lisa.LISAunit:
get_target_dom,
set_target_dom,
target_dom
Inherited from base.TranslationUnit:
gettargetlanguage,
gettargetlen
|
|
|
addnote(self,
text,
origin=None,
position="append")
Add a note specifically in a "note" tag |
source code
|
|
|
|
|
|
Inherited from xliff.xliffunit:
getnotelist,
removenotes
|
|
List
|
|
|
Inherited from xliff.xliffunit:
addlocation
Inherited from base.TranslationUnit:
addlocations
|
|
Inherited from xliff.xliffunit:
adderror,
geterrors
|