Skip to content

Commit

Permalink
Typos introduced in 297f5af.
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiro committed Aug 23, 2013
1 parent b0ce6fe commit 57c82f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions docs/ref/settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1291,18 +1291,18 @@ LANGUAGE_CODE
Default: ``'en-us'``

A string representing the language code for this installation. This should be in
standard :term:`language ID format <language code>`. For example, U.S. English
standard :term:`language ID format <language code>`. For example, U.S. English
is ``"en-us"``. See also the `list of language identifiers`_ and
:doc:`/topics/i18n/index`.

:setting:`USE_I18N` must be active to this setting to have any effect.
:setting:`USE_I18N` must be active for this setting to have any effect.

it serves two purposes:
It serves two purposes:

* If the locale middleware isn't in use, it decides which translation is served
to all users.
* If the locale middleware is active, it provides the fallback translation when
no translation exist for a given literal to the user preferred language.
no translation exist for a given literal to the user's preferred language.

See :ref:`how-django-discovers-language-preference` for more details.

Expand Down
6 changes: 3 additions & 3 deletions docs/topics/i18n/translation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1550,15 +1550,15 @@ should be used -- installation-wide, for a particular user, or both.

To set an installation-wide language preference, set :setting:`LANGUAGE_CODE`.
Django uses this language as the default translation -- the final attempt if no
better matching translation is found by one of the methods employed by the
better matching translation is found through one of the methods employed by the
locale middleware (see below).

If all you want to do is run Django with your native language all you need to do
If all you want is to run Django with your native language all you need to do
is set :setting:`LANGUAGE_CODE` and make sure the corresponding :term:`message
files <message file>` and their compiled versions (``.mo``) exist.

If you want to let each individual user specify which language he or she
prefers, the you also need to use use the ``LocaleMiddleware``.
prefers, then you also need to use use the ``LocaleMiddleware``.
``LocaleMiddleware`` enables language selection based on data from the request.
It customizes content for each user.

Expand Down

0 comments on commit 57c82f9

Please sign in to comment.