Add region setting to supplement localization (#1875)

This commit is contained in:
Raphael Michel
2020-12-14 13:15:38 +01:00
committed by GitHub
parent e311341d01
commit 04bfa63a5e
46 changed files with 281 additions and 90 deletions

View File

@@ -599,7 +599,7 @@ class OrganizerIcalDownload(OrganizerViewMixin, View):
)
if 'locale' in request.GET and request.GET.get('locale') in dict(settings.LANGUAGES):
with language(request.GET.get('locale')):
with language(request.GET.get('locale'), self.request.organizer.settings.region):
cal = get_ical(events)
else:
cal = get_ical(events)