Files @ 24b61c257aab
Branch filter:

Location: kallithea/docs/dev/translation.rst - annotation

24b61c257aab 61 B text/prs.fallenstein.rst Show Source Show as Raw Download as Raw
Thomas De Schampheleire
forms: wrap LoginForm inside function like other forms

All forms except LoginForm are wrapped inside a function. The original
purpose of this wrapping seems to be the ability to pass parameters to tweak
the form.

But, this also has another desired effect: translation of strings
wrapped with _ is no longer attempted when reading the class definition, but
only when the function is instantiated. In the former case, it is not
guaranteed that a translator is actually available because we are not
running in standard application context.

Align LoginForm with the others.
.. _translations:
.. include:: ./../../kallithea/i18n/how_to