summaryrefslogtreecommitdiff
path: root/django/utils/translation/trans_null.py
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-06-15 17:29:10 +0000
committerJannis Leidel <jannis@leidel.info>2011-06-15 17:29:10 +0000
commit896e3c69c7eec311085da349a329ee80c8fca132 (patch)
treedcc608e4b47fb9621e731f3af476443a56ca56aa /django/utils/translation/trans_null.py
parent62bb4b8c37ada04c10d2a37990326636ea7791d6 (diff)
Fixed #11585 -- Added ability to translate and prefix URL patterns with a language code as an alternative method for language discovery. Many thanks to Orne Brocaar for his initial work and Carl Meyer for feedback.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/translation/trans_null.py')
-rw-r--r--django/utils/translation/trans_null.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/django/utils/translation/trans_null.py b/django/utils/translation/trans_null.py
index 5622c03f55..daee96eb75 100644
--- a/django/utils/translation/trans_null.py
+++ b/django/utils/translation/trans_null.py
@@ -58,3 +58,7 @@ def to_locale(language):
def get_language_from_request(request):
return settings.LANGUAGE_CODE
+
+def get_language_from_path(request):
+ return None
+