Internationalization#
- trytond.i18n.gettext(message_id[, language[, \**variables]])#
Return the message translated into the
language
.The
message_id
is theXML
id for their.message
that is to be translated, and thevariables
keyword arguments are used as a mapping to format the string. Iflanguage
is not set, then theTransaction.language
is used.
- trytond.i18n.lazy_gettext(message_id[, language[, \**variables]])#
Return a LazyString that will be translated with gettext later when actually used.