|
|
__init__(self,
source=None)
Constructs a TranslationUnit containing the given source string. |
source code
|
|
|
|
getdict(self)
Get the dictionary of values for a catkeys line |
source code
|
|
|
|
|
|
|
|
|
string
|
|
|
|
|
|
|
__str__(self)
Converts to a string representation that can be parsed back using
parsestring(). |
source code
|
|
|
|
|
|
|
merge(self,
otherunit,
overwrite=False,
comments=True,
authoritative=False)
Do basic format agnostic merging. |
source code
|
|
|
Inherited from base.TranslationUnit:
__eq__,
get_state_id,
get_state_n,
getunits,
hasplural,
infer_state,
isblank,
isfuzzy,
isheader,
isobsolete,
isreview,
istranslatable,
makeobsolete,
markreviewneeded,
multistring_to_rich,
set_state_n,
setcontext,
setid,
unit_iter
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__subclasshook__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from base.TranslationUnit:
getsourcelanguage
|
|
|
|
|
|
|
|
|
|
|
Inherited from base.TranslationUnit:
gettargetlanguage,
gettargetlen
|
|
|
|
|
Inherited from base.TranslationUnit:
addnote,
removenotes
|
|
Inherited from base.TranslationUnit:
addlocation,
addlocations,
getlocations
|
|
Inherited from base.TranslationUnit:
adderror,
geterrors
|