| django-bidi-utils Contextprocessors en helpers voor Bidi in Django-sjablonen |
Download nu |
django-bidi-utils Rangschikking & Samenvatting
- Vergunning:
- MIT/X Consortium Lic...
- Naam uitgever:
- Meir Kriheli
- Uitgever website:
- http://github.com/mksoft/
django-bidi-utils Tags
django-bidi-utils Beschrijving
Contextprocessors en helpers voor Bidi in Django-sjablonen Django-Bidi-Utils is een Python-module die contextprocessors en filters biedt voor het hanteren van Bi-Directional (Bidi) in Django Templates.Context ProcessorSadD IT to Template_Context_Processors in de instellingen van uw project.py. bijv. :( "Django.core.context_processors.auth", "django.core.context_processors.debug", "django.core.context_processors.i18n", "django.core.context_processors.media", "bidiutils.context_processors.bidi" ,) De contextprocessor definieert de volgende sjabloonvariabelen: * Taal_direction: richting van de huidige taal (LTR of RTL) * TALLE_START: START VAN TAAL LAYOUT (RECHTS VOOR RTL, LINKS VOOR LTR) * Taaltijd RTL, RECHTS VOOR LTR) * TAAL_MARKER - Taalmarkering-entiteit (voor RTL, voor LTR) FiltersADD_DirectionADDS-richting aan de elementargumenten: ARG * RTL_ONLY: Voeg de richting alleen toe in het geval van een aansluitingstaal (standaard) * Beide: voeg de richting toe in beide case * ltr_only: voeg de richting alleen toe in het geval van een langere taal {{image_name | add_direction}} wanneer Image_Name 'start_arrow.png' resulteert in het geval van 'start_arrow_rtl.png' in geval van RTL-taal, en 'Start_arrow.png' of 'Start_arrow_ltr.png' is afhankelijk van ARG-waarde.Nutjes in dit document NT: RTL Right-to-links geschreven taal (bijvoorbeeld: Hebreeuws, Arabisch) LTR Links-to-rechter geschreven taal (bijvoorbeeld: Engels, Frans) Vereisten: · Python · Django Wat is er nieuw in deze release: · Toegevoegd sjabloonfilter add_direction · README VERWIJDERD, Voeg MAINFEST.IN toe die LEADME.RST omvat
django-bidi-utils Gerelateerde software