1
0
mirror of https://github.com/django/django.git synced 2025-01-08 17:37:20 +00:00

Documented translation.override as a decorator.

refs #23323.
This commit is contained in:
Simon Charette 2014-08-29 17:23:13 -04:00
parent 7a8f405bba
commit 4926c0afe3

View File

@ -1049,6 +1049,10 @@ For a complete discussion on the usage of the following see the
is ``True``. If you pass ``None`` as the language argument, a
``NullTranslations()`` instance is activated within the context.
.. versionchanged:: 1.8
``override`` is now usable as a function decorator.
.. function:: get_language()
Returns the currently selected language code.