Ticket #16449: language-code-in-commands-note-ticket-16449.patch

File language-code-in-commands-note-ticket-16449.patch, 844 bytes (added by Jakub Roztočil, 13 years ago)
  • docs/ref/settings.txt

    diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
    index c09b218..3fbb447 100644
    a b A string representing the language code for this installation. This should be in  
    11151115standard :term:`language format<language code>`. For example, U.S. English is
    11161116``"en-us"``. See :doc:`/topics/i18n/index`.
    11171117
     1118.. note::
     1119    The value of :setting:`LANGUAGE_CODE` isn't respected when running managements commands.
     1120    The :meth:`BaseCommand.execute` method sets the
     1121    hardcoded ``en-us`` locale because the commands shipped with Django perform several tasks
     1122    (for example, user-facing content rendering and database population) that
     1123    require a system-neutral string language (for which we use ``en-us``).
     1124
    11181125.. setting:: LANGUAGE_COOKIE_NAME
    11191126
    11201127LANGUAGE_COOKIE_NAME
Back to Top