Package translate :: Package storage :: Module mo :: Class mounit
[hide private]
[frames] | no frames]

Class mounit

source code


A class representing a .mo translation message.

Instance Methods [hide private]
 
__init__(self, source=None)
Constructs a TranslationUnit containing the given source string.
source code
 
getcontext(self)
Get the message context
source code
 
isheader(self)
Is this a header entry?
source code
 
istranslatable(self)
Is this message translateable?
source code

Inherited from base.TranslationUnit: __eq__, __str__, getid, getunits, hasplural, isblank, isfuzzy, isobsolete, isreview, istranslated, makeobsolete, markfuzzy, markreviewneeded, merge, multistring_to_rich, setcontext, setid, unit_iter

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

    Source

Inherited from base.TranslationUnit: getsourcelanguage, setsource

    Target

Inherited from base.TranslationUnit: gettargetlanguage, gettargetlen, settarget

    Notes

Inherited from base.TranslationUnit: addnote, getnotes, removenotes

    Locations

Inherited from base.TranslationUnit: addlocation, addlocations, getlocations

    Errors

Inherited from base.TranslationUnit: adderror, geterrors

Class Methods [hide private]

Inherited from base.TranslationUnit: buildfromunit, rich_to_multistring

Class Variables [hide private]

Inherited from base.TranslationUnit: rich_parsers

Properties [hide private]

Inherited from base.TranslationUnit: rid, xid

Inherited from object: __class__

    Source

Inherited from base.TranslationUnit: rich_source, source

    Target

Inherited from base.TranslationUnit: rich_target, target

Method Details [hide private]

__init__(self, source=None)
(Constructor)

source code 

Constructs a TranslationUnit containing the given source string.

Overrides: object.__init__
(inherited documentation)

getcontext(self)

source code 

Get the message context

Overrides: base.TranslationUnit.getcontext

isheader(self)

source code 

Is this a header entry?

Overrides: base.TranslationUnit.isheader

istranslatable(self)

source code 

Is this message translateable?

Overrides: base.TranslationUnit.istranslatable