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

Class tbxfile

source code

           object --+        
                    |        
base.TranslationStore --+    
                        |    
            lisa.LISAfile --+
                            |
                           tbxfile

Class representing a TBX file store.

Nested Classes [hide private]
  UnitClass
A single term in the TBX file.
Instance Methods [hide private]
 
addheader(self)
Initialise headers with TBX specific things.
source code

Inherited from lisa.LISAfile: __init__, __str__, addsourceunit, addunit, initbody, namespaced, parse, setsourcelanguage, settargetlanguage

Inherited from base.TranslationStore: findunit, getunits, isempty, makeindex, save, savefile, translate, unit_iter

Inherited from base.TranslationStore (private): _assignname

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

Class Methods [hide private]

Inherited from base.TranslationStore: parsefile, parsestring

Class Variables [hide private]
  Name = 'TBX file'
  Mimetypes = ['application/x-tbx']
  Extensions = ['tbx']
  rootNode = 'martif'
  bodyNode = 'body'
  XMLskeleton = '<?xml version="1.0"?>\n<!DOCTYPE martif PUBLIC ...

Inherited from lisa.LISAfile: namespace

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

addheader(self)

source code 

Initialise headers with TBX specific things.

Overrides: lisa.LISAfile.addheader

Class Variable Details [hide private]

XMLskeleton

Value:
'''<?xml version="1.0"?>
<!DOCTYPE martif PUBLIC "ISO 12200:1999A//DTD MARTIF core (DXFcdV04)//\
EN" "TBXcdv04.dtd">
<martif type="TBX">
<martifHeader>
<fileDesc>
<sourceDesc><p>Translate Toolkit - csv2tbx</p></sourceDesc>
</fileDesc>
...