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

Type i18n

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'})

Method Summary
  __init__(self, **langs)
  __call__(self, db, props)
    Inherited from Glue
  __add__(self, other)
  __or__(self, other)
  __radd__(self, other)
  __ror__(self, other)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Generated by Epydoc 2.1 on Sun Sep 24 23:52:43 2006 http://epydoc.sf.net