i18n

Set of classes to store internationalization data in the database. Camelot applications can be translated by the developer using regular PO files, or by the user. In case the user makes a translation, this translation is stored into the Translation table. This table can be exported to PO files for inclusion in the development cycle.

class camelot.model.i18n.Translation(*args, **kwargs)[source]

Table to store user generated translations or customization.

id

The primary key

classmethod translate(source, language)[source]

Translate source to language, return None if no translation is found

classmethod translate_or_register(source, language)[source]

Translate source to language, if no translation is found, register the source as to be translated and return the source