Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed obsolete locale restriction admonition

Refs #14461. Thanks Ramiro Morales for pointing this.
  • Loading branch information...
commit b780d03d624e712d7b1f6b6796058b950e975675 1 parent f2e0266
Claude Paroz authored November 08, 2013

Showing 1 changed file with 0 additions and 22 deletions. Show diff stats Hide diff stats

  1. 22  docs/topics/i18n/translation.txt
22  docs/topics/i18n/translation.txt
@@ -1215,21 +1215,6 @@ Once the string literals of an application have been tagged for later
1215 1215
 translation, the translation themselves need to be written (or obtained). Here's
1216 1216
 how that works.
1217 1217
 
1218  
-.. _locale-restrictions:
1219  
-
1220  
-.. admonition:: Locale restrictions
1221  
-
1222  
-    Django does not support localizing your application into a locale for which
1223  
-    Django itself has not been translated. In this case, it will ignore your
1224  
-    translation files. If you were to try this and Django supported it, you
1225  
-    would inevitably see a mixture of translated strings (from your application)
1226  
-    and English strings (from Django itself). If you want to support a locale
1227  
-    for your application that is not already part of Django, you'll need to make
1228  
-    at least a minimal translation of the Django core.
1229  
-
1230  
-    A good starting point is to copy the Django English ``.po`` file and to
1231  
-    translate at least some :term:`translation strings <translation string>`.
1232  
-
1233 1218
 Message files
1234 1219
 -------------
1235 1220
 
@@ -1689,13 +1674,6 @@ Notes:
1689 1674
   the *real* ``ugettext()`` in any code that uses :setting:`LANGUAGES` at
1690 1675
   runtime.
1691 1676
 
1692  
-* The ``LocaleMiddleware`` can only select languages for which there is a
1693  
-  Django-provided base translation. If you want to provide translations
1694  
-  for your application that aren't already in the set of translations
1695  
-  in Django's source tree, you'll want to provide at least a basic
1696  
-  one as described in the :ref:`Locale restrictions<locale-restrictions>`
1697  
-  note.
1698  
-
1699 1677
 Once ``LocaleMiddleware`` determines the user's preference, it makes this
1700 1678
 preference available as ``request.LANGUAGE_CODE`` for each
1701 1679
 :class:`~django.http.HttpRequest`. Feel free to read this value in your view

0 notes on commit b780d03

Please sign in to comment.
Something went wrong with that request. Please try again.