summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2014-03-17 17:06:11 +0000
committerBaptiste Mispelon <bmispelon@gmail.com>2014-03-18 10:57:47 +0100
commit61296fb1baabe616c74091dcae9d4f2f6ba6dda6 (patch)
tree1a959fc473ba0cc2b5053fe1d0cdefe6d713352b
parentb47ef04ea2a3b1a48160253dd0ab906e621cecee (diff)
Fixed #22283 -- Updated documentation referring to non-existent tuples.
-rw-r--r--django/utils/translation/trans_real.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/django/utils/translation/trans_real.py b/django/utils/translation/trans_real.py
index a22cd62b9b..bf6ad7ee95 100644
--- a/django/utils/translation/trans_real.py
+++ b/django/utils/translation/trans_real.py
@@ -21,7 +21,7 @@ from django.utils.six import StringIO
from django.utils.translation import TranslatorCommentWarning, trim_whitespace, LANGUAGE_SESSION_KEY
-# Translations are cached in a dictionary for every language+app tuple.
+# Translations are cached in a dictionary for every language.
# The active translations are stored by threadid to make them thread local.
_translations = {}
_active = local()
@@ -206,9 +206,8 @@ def translation(language):
def activate(language):
"""
- Fetches the translation object for a given tuple of application name and
- language and installs it as the current translation object for the current
- thread.
+ Fetches the translation object for a given language and installs it as the
+ current translation object for the current thread.
"""
if language in _DJANGO_DEPRECATED_LOCALES:
msg = ("The use of the language code '%s' is deprecated. "