Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.6.x] Removed obsolete locale restriction admonition

Refs #14461. Thanks Ramiro Morales for pointing this.
Backport of b780d03 from master.
  • Loading branch information...
commit 3c8879f092be25f0b60051d8e0c3a77dca354af3 1 parent 6c34e18
Claude Paroz authored

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
@@ -1193,21 +1193,6 @@ Once the string literals of an application have been tagged for later
1193 1193
 translation, the translation themselves need to be written (or obtained). Here's
1194 1194
 how that works.
1195 1195
 
1196  
-.. _locale-restrictions:
1197  
-
1198  
-.. admonition:: Locale restrictions
1199  
-
1200  
-    Django does not support localizing your application into a locale for which
1201  
-    Django itself has not been translated. In this case, it will ignore your
1202  
-    translation files. If you were to try this and Django supported it, you
1203  
-    would inevitably see a mixture of translated strings (from your application)
1204  
-    and English strings (from Django itself). If you want to support a locale
1205  
-    for your application that is not already part of Django, you'll need to make
1206  
-    at least a minimal translation of the Django core.
1207  
-
1208  
-    A good starting point is to copy the Django English ``.po`` file and to
1209  
-    translate at least some :term:`translation strings <translation string>`.
1210  
-
1211 1196
 Message files
1212 1197
 -------------
1213 1198
 
@@ -1662,13 +1647,6 @@ Notes:
1662 1647
   the *real* ``ugettext()`` in any code that uses :setting:`LANGUAGES` at
1663 1648
   runtime.
1664 1649
 
1665  
-* The ``LocaleMiddleware`` can only select languages for which there is a
1666  
-  Django-provided base translation. If you want to provide translations
1667  
-  for your application that aren't already in the set of translations
1668  
-  in Django's source tree, you'll want to provide at least a basic
1669  
-  one as described in the :ref:`Locale restrictions<locale-restrictions>`
1670  
-  note.
1671  
-
1672 1650
 Once ``LocaleMiddleware`` determines the user's preference, it makes this
1673 1651
 preference available as ``request.LANGUAGE_CODE`` for each
1674 1652
 :class:`~django.http.HttpRequest`. Feel free to read this value in your view

0 notes on commit 3c8879f

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