forked from CGM_Public/pretix_original
Fix untranslated titles of export providers
This commit is contained in:
@@ -3,7 +3,7 @@ import tempfile
|
|||||||
from zipfile import ZipFile
|
from zipfile import ZipFile
|
||||||
|
|
||||||
from django.dispatch import receiver
|
from django.dispatch import receiver
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from ..exporter import BaseExporter
|
from ..exporter import BaseExporter
|
||||||
from ..services.invoices import invoice_pdf_task
|
from ..services.invoices import invoice_pdf_task
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ from collections import OrderedDict
|
|||||||
|
|
||||||
from django import forms
|
from django import forms
|
||||||
from django.dispatch import receiver
|
from django.dispatch import receiver
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from ..exporter import BaseExporter
|
from ..exporter import BaseExporter
|
||||||
from ..models import Order
|
from ..models import Order
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ from django import forms
|
|||||||
from django.db.models import Sum
|
from django.db.models import Sum
|
||||||
from django.dispatch import receiver
|
from django.dispatch import receiver
|
||||||
from django.utils.formats import localize
|
from django.utils.formats import localize
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext as _, ugettext_lazy
|
||||||
|
|
||||||
from pretix.base.models import InvoiceAddress, Order, OrderPosition
|
from pretix.base.models import InvoiceAddress, Order, OrderPosition
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ from ..signals import register_data_exporters, register_payment_providers
|
|||||||
|
|
||||||
class OrderListExporter(BaseExporter):
|
class OrderListExporter(BaseExporter):
|
||||||
identifier = 'orderlistcsv'
|
identifier = 'orderlistcsv'
|
||||||
verbose_name = _('List of orders (CSV)')
|
verbose_name = ugettext_lazy('List of orders (CSV)')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def export_form_fields(self):
|
def export_form_fields(self):
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import io
|
|||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
||||||
from django import forms
|
from django import forms
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext as _, ugettext_lazy
|
||||||
|
|
||||||
from pretix.base.exporter import BaseExporter
|
from pretix.base.exporter import BaseExporter
|
||||||
from pretix.base.models import Order, OrderPosition, Question
|
from pretix.base.models import Order, OrderPosition, Question
|
||||||
@@ -16,7 +16,7 @@ class BaseCheckinList(BaseExporter):
|
|||||||
class CSVCheckinList(BaseCheckinList):
|
class CSVCheckinList(BaseCheckinList):
|
||||||
name = "overview"
|
name = "overview"
|
||||||
identifier = 'checkinlistcsv'
|
identifier = 'checkinlistcsv'
|
||||||
verbose_name = _('Check-in list (CSV)')
|
verbose_name = ugettext_lazy('Check-in list (CSV)')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def export_form_fields(self):
|
def export_form_fields(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user