Package moul :: Package file :: Module localization
[hide private]
[frames] | no frames]

Module localization



LOC file parser

Classes [hide private]
  TranslationRegistry
Registry for Translation objects
  Translation
Translation object
  MoulLocHandler
Content handler for Myst Online Uru Live locatization
  LocDirParser
Parse translation LOC files

Functions [hide private]
  registerTranslation(translation)
Register a translation instance
  _addList(d, key, value)
Utility for dict.setdefault(key, [].append())
  _addTree(d, lang, age, setname, element, key)
Utility to create the lang - age - set - element tree

Variables [hide private]
  __author__ = 'Christian Heimes'
  __version__ = '$Id: localization.py 129 2007-02-03 18:41:23Z tiran $'
  __revision__ = '$Revision: 129 $'
  LOG = <logging.Logger instance at 0x403d036c>
  IGNORE_AGES = [u'OptionsMenu', u'ACA', u'Global', u'KI', u'Heek']
  IGNORE_SETS = []
  IGNORE_ELEMENTS = []
  translationRegistry = <TranslationRegistry at 1076805324 with 0 elements
  with_statement = _Feature((2, 5, 0, 'alpha', 1), (2, 6, 0, 'alpha', 0...

Function Details [hide private]

registerTranslation(translation)

 

Register a translation instance

Translations are stored by their key. During the registration the translations are also inserted in multiple lookup tables and a tree.
Parameters:
  • translation (Translation instance) - a translation object

_addList(d, key, value)

 
Utility for dict.setdefault(key, [].append())

_addTree(d, lang, age, setname, element, key)

 
Utility to create the lang - age - set - element tree

Variables Details [hide private]

__author__

None
Value:
'Christian Heimes'                                                     
      

__version__

None
Value:
'$Id: localization.py 129 2007-02-03 18:41:23Z tiran $'                
      

__revision__

None
Value:
'$Revision: 129 $'                                                     
      

LOG

None
Value:
<logging.Logger instance at 0x403d036c>                                
      

IGNORE_AGES

None
Value:
[u'OptionsMenu', u'ACA', u'Global', u'KI', u'Heek']                    
      

IGNORE_SETS

None
Value:
[]                                                                     
      

IGNORE_ELEMENTS

None
Value:
[]                                                                     
      

translationRegistry

None
Value:
<TranslationRegistry at 1076805324 with 0 elements                     
      

with_statement

None
Value:
_Feature((2, 5, 0, 'alpha', 1), (2, 6, 0, 'alpha', 0), 32768)