summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/utils.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index 327f44bbfc..195647ea15 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -1098,7 +1098,14 @@ For a complete discussion on the usage of the following see the
.. function:: get_language()
- Returns the currently selected language code.
+ Returns the currently selected language code. Returns ``None`` if
+ translations are temporarily deactivated (by :func:`deactivate_all()` or
+ when ``None`` is passed to :func:`override()`).
+
+ .. versionchanged:: 1.8
+
+ Before Django 1.8, ``get_language()`` always returned
+ :setting:`LANGUAGE_CODE` when translations were deactivated.
.. function:: get_language_bidi()