From 4926c0afe3ff8f306f752b9ae45366cc8fd3e42c Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Fri, 29 Aug 2014 17:23:13 -0400 Subject: [PATCH] Documented translation.override as a decorator. refs #23323. --- docs/ref/utils.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 9c44bbb840..e4164d2d34 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -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.