|
__init__(self,
source=None,
encoding='utf-8',
gpo_message=None)
Constructs a TranslationUnit containing the given source string. |
source code
|
|
|
infer_state(self)
Empty method that should be overridden in sub-classes to infer the
current state(_n) of the unit from its current state. |
source code
|
|
|
|
string
|
getid(self)
The unique identifier for this unit according to the convensions in
.mo files. |
source code
|
|
|
|
|
merge(self,
otherpo,
overwrite=False,
comments=True,
authoritative=False)
Merges the otherpo (with the same msgid) into this one. |
source code
|
|
|
|
|
|
|
|
|
settypecomment(self,
typecomment,
present=True) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
String
|
|
|
|
|
__str__(self)
Converts to a string representation that can be parsed back using
parsestring() . |
source code
|
|
|
|
|
|
Inherited from pocommon.pounit :
isreview ,
istranslatable ,
istranslated ,
markreviewneeded
Inherited from base.TranslationUnit :
__eq__ ,
get_state_id ,
get_state_n ,
getunits ,
isfuzzy ,
isobsolete ,
markfuzzy ,
multistring_to_rich ,
set_state_n ,
setid ,
unit_iter
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__
|
|
|
|
|
Inherited from base.TranslationUnit :
getsourcelanguage
|
|
|
|
|
Inherited from base.TranslationUnit :
gettargetlanguage ,
gettargetlen
|
|
|
|
|
|
|
List
|
|
|
|
Inherited from base.TranslationUnit :
addlocations
|
Inherited from pocommon.pounit :
adderror ,
geterrors
|