A single term in the xliff file.
|
|
|
|
|
|
|
_gettype(self)
Returns the type of this translation. |
source code
|
|
|
_settype(self,
value=None)
Set the type of this translation. |
source code
|
|
|
|
|
|
|
|
string
|
|
|
|
|
|
|
|
|
merge(self,
otherunit,
overwrite=False,
comments=True,
authoritative=False)
Do basic format agnostic merging. |
source code
|
|
|
|
|
|
|
|
Inherited from lisa.LISAunit :
__eq__ ,
__init__ ,
__str__ ,
createPHnodes ,
getNodeText ,
getlanguageNode ,
namespaced
Inherited from lisa.LISAunit (private):
_set_property
Inherited from base.TranslationUnit :
get_state_id ,
getunits ,
infer_state ,
isblank ,
isheader ,
istranslated ,
makeobsolete ,
markreviewneeded ,
multistring_to_rich ,
setcontext ,
setid ,
unit_iter
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
|
|
|
|
Inherited from lisa.LISAunit :
get_source_dom ,
set_source_dom ,
setsource
Inherited from base.TranslationUnit :
getsourcelanguage
|
|
|
|
settarget(self,
text)
Sets the "target" string (second language), or
alternatively appends to the list |
source code
|
|
|
gettarget(self)
retrieves the "target" text (second entry), or the entry in
the specified language, if it exists |
source code
|
|
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 the appropriate "*comment" tag |
source code
|
|
|
|
|
|
|
|
List
|
|
Inherited from base.TranslationUnit :
addlocations
|
Inherited from base.TranslationUnit :
adderror ,
geterrors
|
|
rootNode = "message"
|
|
languageNode = "source"
|
|
textNode = ""
|
|
namespace = ''
hash(x)
|
|
rich_parsers = [ <bound method type.regex_parse of <class 'tran...
A list of functions to use for parsing a string into a rich string
tree.
|
|
S_OBSOLETE = -100
|
|
S_UNTRANSLATED = 0
|
|
S_FUZZY = 30
|
|
S_TRANSLATED = 100
|
|
statemap = {"obsolete": S_OBSOLETE, "unfinished": S_FUZZY, "":...
This maps the unit "type" attribute to state.
|
|
STATE = {S_OBSOLETE:(state.OBSOLETE, state.EMPTY), S_UNTRANSLA...
|
|
statemap_r = dict((i [1], i [0]) for i in statemap.iteritems())
|
Inherited from lisa.LISAunit :
rid ,
xid
Inherited from lisa.LISAunit (private):
_default_xml_space
Inherited from base.TranslationUnit :
S_EMPTY ,
S_FINAL ,
S_NEEDS_REVIEW ,
S_NEEDS_WORK ,
S_REJECTED ,
S_UNREVIEWED
|
|
source = property(getsource, lisa.LISAunit.setsource)
|
|
rich_source = property(base.TranslationUnit._get_rich_source, ...
|
Inherited from lisa.LISAunit :
source_dom
|
|
target = property(gettarget, settarget)
|
|
rich_target = property(base.TranslationUnit._get_rich_target, ...
|
|
Inherited from base.TranslationUnit :
notes
|