|
__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 :
get_state_n ,
isobsolete ,
isreview ,
istranslatable ,
istranslated ,
markfuzzy ,
markreviewneeded ,
set_state_n
Inherited from base.TranslationUnit :
__eq__ ,
get_state_id ,
getunits ,
multistring_to_rich ,
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
|
|
|
|
|
|
|
List
|
|
|
|
Inherited from base.TranslationUnit :
addlocations
|
Inherited from pocommon.pounit :
adderror ,
geterrors
|
|
msgid_plural = property(None, setmsgid_plural)
|
|
msgidcomment = property(_extract_msgidcomments, setmsgidcomment)
|
Inherited from pocommon.pounit :
STATE ,
S_FUZZY ,
S_FUZZY_OBSOLETE ,
S_OBSOLETE ,
S_TRANSLATED ,
S_UNTRANSLATED
Inherited from base.TranslationUnit :
S_EMPTY ,
S_FINAL ,
S_NEEDS_REVIEW ,
S_NEEDS_WORK ,
S_REJECTED ,
S_UNREVIEWED ,
rich_parsers
|
|
source = property(getsource, setsource)
|
|
|
target = property(gettarget, settarget)
|
|
Inherited from base.TranslationUnit :
notes
|