Ticket #17723: 17723.diff

File 17723.diff, 998 bytes (added by Ryan Kaskel, 13 years ago)
  • docs/ref/utils.txt

    diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
    index f7ec638..9b7aa7c 100644
    a b For a complete discussion on the usage of the following see the  
    591591    * ``False`` = left-to-right layout
    592592    * ``True`` = right-to-left layout
    593593
    594 .. function:: get_language_from_request(request)
     594.. function:: get_language_from_request(request, check_path=False)
     595
     596    .. versionchanged:: 1.4
    595597
    596598    Analyzes the request to find what language the user wants the system to show.
    597599    Only languages listed in settings.LANGUAGES are taken into account. If the user
    598600    requests a sublanguage where we have a main language, we send out the main
    599601    language.
    600602
     603    If ``check_path`` is ``True``, the analysis first considers the requested URL,
     604    checking if its path begins with a language code listed in the ``LANGUAGES``
     605    setting.
     606
    601607.. function:: to_locale(language)
    602608
    603609    Turns a language name (en-us) into a locale name (en_US).
Back to Top