Skip to content

Commit

Permalink
Fixed #22283 -- Updated documentation referring to non-existent tuples.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos authored and bmispelon committed Mar 18, 2014
1 parent b47ef04 commit 61296fb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions django/utils/translation/trans_real.py
Expand Up @@ -21,7 +21,7 @@
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()
Expand Down Expand Up @@ -206,9 +206,8 @@ def _merge(path):

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. "
Expand Down

0 comments on commit 61296fb

Please sign in to comment.