# HG changeset patch
# User Damian Terentiev <infusiastic@gmail.com>
# Date 1213430800 -14400
# Node ID 85d8061895a75b9904d86462d380fc32a9145734
# Parent 6a1e6ffe731aef9ca80fdc6747b0ceb21f7a483f
Clarified the i18n docs
Added the instruction to set LANGUAGES setting in addition to LANGUAGE_CODE if the user wants to run Django in his native language.
diff -r 6a1e6ffe731a -r 85d8061895a7 docs/i18n.txt
a
|
b
|
|
517 | 517 | |
518 | 518 | If all you want to do is run Django with your native language, and a language |
519 | 519 | file is available for your language, all you need to do is set |
520 | | ``LANGUAGE_CODE``. |
| 520 | ``LANGUAGE_CODE`` and ``LANGUAGES``. |
| 521 | |
| 522 | For example, if you want to run Django in German, you should have the following in your settings.py:: |
| 523 | |
| 524 | LANGUAGE_CODE = "de" |
| 525 | LANGUAGES = ( |
| 526 | ("de", "German") |
| 527 | ) |
521 | 528 | |
522 | 529 | If you want to let each individual user specify which language he or she |
523 | 530 | prefers, use ``LocaleMiddleware``. ``LocaleMiddleware`` enables language |