mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Support for right-to-left languages (#1438)
* play around * Flip things in presale * Convert backend * Remove test settings * Safe getattr
This commit is contained in:
@@ -4,7 +4,9 @@ from django.conf import settings
|
||||
|
||||
|
||||
def contextprocessor(request):
|
||||
ctx = {}
|
||||
ctx = {
|
||||
'rtl': getattr(request, 'LANGUAGE_CODE', 'en') in settings.LANGUAGES_RTL,
|
||||
}
|
||||
if settings.DEBUG and 'runserver' not in sys.argv:
|
||||
ctx['debug_warning'] = True
|
||||
elif 'runserver' in sys.argv:
|
||||
|
||||
Reference in New Issue
Block a user