Package translate :: Package storage :: Module tbx :: Class tbxunit
[hide private]
[frames] | no frames]

Class tbxunit

source code


A single term in the TBX file. Provisional work is done to make several languages possible.

Instance Methods [hide private]
 
createlanguageNode(self, lang, text, purpose)
returns a langset xml Element setup with given parameters
source code

Inherited from lisa.LISAunit: __eq__, __init__, __str__, createPHnodes, getNodeText, getlanguageNode, getlanguageNodes, namespaced

Inherited from base.TranslationUnit: getcontext, getid, getunits, hasplural, isblank, isfuzzy, isheader, isreview, istranslatable, istranslated, markfuzzy, markreviewneeded, merge, multistring_to_rich, unit_iter

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

    Source

Inherited from lisa.LISAunit: getsource, setsource

Inherited from base.TranslationUnit: getsourcelanguage

    Target

Inherited from lisa.LISAunit: gettarget, settarget

Inherited from base.TranslationUnit: gettargetlanguage, gettargetlen

    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 lisa.LISAunit: createfromxmlElement

Inherited from base.TranslationUnit: buildfromunit, rich_to_multistring

Class Variables [hide private]
  rootNode = "termEntry"
  languageNode = "langSet"
  textNode = "term"

Inherited from lisa.LISAunit: namespace

Inherited from base.TranslationUnit: rich_parsers

    Source

Inherited from lisa.LISAunit: source

    Target

Inherited from lisa.LISAunit: target

Properties [hide private]

Inherited from base.TranslationUnit: rid, xid

Inherited from object: __class__

    Source

Inherited from base.TranslationUnit: rich_source

    Target

Inherited from base.TranslationUnit: rich_target

Method Details [hide private]

createlanguageNode(self, lang, text, purpose)

source code 

returns a langset xml Element setup with given parameters

Overrides: lisa.LISAunit.createlanguageNode