Package Pyblio :: Package Format :: Module DSL :: Class i18n
[hide private]
[frames] | no frames]

Class i18n

source code

object --+    
         |    
      Glue --+
             |
            i18n

Translatable content.

To create translatable content, do:
>>> citation = i18n(fr=u'En français',
                    en=u'In english',
                    default=u'Zloktagrok')
>>> compiled = citation(db, props={'ln': 'fr'})


Instance Methods [hide private]
 
__init__(self, **langs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__call__(self, db, props={}) source code

Inherited from Glue: __add__, __or__, __radd__, __ror__

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **langs)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)