Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    django-bidi-utils 0.2.1

    Download button

    No screenshots available
    Downloads: 277  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Meir Kriheli | More programs
    MIT/X Consortium Lic... / FREE
    May 19th, 2009, 03:36 GMT [view history]
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-bidi-utils description

    Context processors and helpers for BIDI in django templates

    django-bidi-utils is a Python module that provides context processors and filters for handling Bi-directional (BiDi) in django templates.

    Context processors

    Add it to TEMPLATE_CONTEXT_PROCESSORS in your project's settings.py. e.g:

    ("django.core.context_processors.auth",
    "django.core.context_processors.debug",
    "django.core.context_processors.i18n",
    "django.core.context_processors.media",
    "bidiutils.context_processors.bidi",)


    The context processor defines the following template variables:

     * LANGUAGE_DIRECTION: Direction of current language (ltr or rtl)
     * LANGUAGE_START: Start of language layout (right for RTL, left for LTR)
     * LANGUAGE_END -- End of language layout (left for RTL, right for LTR)
     * LANGUAGE_MARKER -- Language marker entity (‏ for RTL, ‎ for LTR)

    Filters

    add_direction

    Adds direction to the element
    arguments:

    arg

     * rtl_only: Add the direction only in case of a right-to-left language (default)
     * both: add the direction in both case
     * ltr_only: Add the direction only in case of a left-to-right language

    {{image_name|add_direction}} when image_name is 'start_arrow.png' results in 'start_arrow_rtl.png' in case of RTL language, and 'start_arrow.png' or 'start_arrow_ltr.png' depends on arg value.

    Notes

    In this document:

    RTL
     Right-to-Left written language (e.g: Hebrew, Arabic)
    LTR
     Left-to-Right written language (e.g: English, French)


    Product's homepage

    Requirements:

    · Python
    · Django

    What's New in This Release: [ read full changelog ]

    · Added template filter add_direction
    · Removed README, add MAINFEST.in which includes README.rst

      


    TAGS:

    context processors | Django templates | context filters | Django | templates | Bi-directional

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM