lino.utils.mldbc

Generic support for Multilingual database content.

See usage example in Multilingual database content.

This includes definition of babel fields in your Django Models as well as methods to access these fields.

Multilingual database content:

fields

Defines the babel field classes (BabelCharField and BabelTextField) and the LanguageField class.

mixins

Defines the model mixin BabelNamed.

(This module's source code is available here.)

Functions

babel_named(model, name, **kwargs)

Instantiate the given subclass of BabelNamed

babeld(model, desig, **kwargs)

Instantiate the given subclass of BabelDesignated

lino.utils.mldbc.babel_named(model, name, **kwargs)

Instantiate the given subclass of BabelNamed

lino.utils.mldbc.babeld(model, desig, **kwargs)

Instantiate the given subclass of BabelDesignated