From c0686ba453b1ee05cb9d7403d03132732db79688 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sat, 3 Mar 2018 21:26:24 +0100 Subject: [PATCH] Fix front-page note --- pretix_servicefees/signals.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pretix_servicefees/signals.py b/pretix_servicefees/signals.py index 8a02d74..310f620 100644 --- a/pretix_servicefees/signals.py +++ b/pretix_servicefees/signals.py @@ -3,7 +3,7 @@ from decimal import Decimal from django.urls import resolve, reverse from django.dispatch import receiver from django.http import HttpRequest -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import ugettext_lazy as _, ugettext, get_language from pretix.base.models import Event, Order, TaxRule from pretix.base.models.orders import OrderFee from pretix.base.signals import order_fee_calculation @@ -65,6 +65,6 @@ def order_fee(sender: Event, invoice_address, total, **kwargs): def front_page_top_recv(sender: Event, **kwargs): fee = sender.settings.get('service_fee_abs', as_type=Decimal) if fee: - return '

%s

' % _('A service fee of {} will be added on top of each order.'.format( + return '

%s

' % ugettext('A service fee of {} will be added on top of each order.').format( money_filter(fee, sender.currency) - )) + )