forked from CGM_Public/pretix_original
Added various missing punctuation marks, changed "following" to "selected" to match the display.
This commit is contained in:
@@ -306,7 +306,7 @@ class BasePaymentProvider:
|
|||||||
initial=['web'],
|
initial=['web'],
|
||||||
widget=forms.CheckboxSelectMultiple,
|
widget=forms.CheckboxSelectMultiple,
|
||||||
help_text=_(
|
help_text=_(
|
||||||
'Only allow the usage of this payment provider in the following sales channels'),
|
'Only allow the usage of this payment provider in the selected sales channels.'),
|
||||||
)),
|
)),
|
||||||
('_hidden',
|
('_hidden',
|
||||||
forms.BooleanField(
|
forms.BooleanField(
|
||||||
@@ -902,7 +902,7 @@ class ManualPayment(BasePaymentProvider):
|
|||||||
label=_('Payment process description in order confirmation emails'),
|
label=_('Payment process description in order confirmation emails'),
|
||||||
help_text=_('This text will be included for the {payment_info} placeholder in order confirmation '
|
help_text=_('This text will be included for the {payment_info} placeholder in order confirmation '
|
||||||
'mails. It should instruct the user on how to proceed with the payment. You can use '
|
'mails. It should instruct the user on how to proceed with the payment. You can use '
|
||||||
'the placeholders {order}, {total}, {currency} and {total_with_currency}'),
|
'the placeholders {order}, {total}, {currency} and {total_with_currency}.'),
|
||||||
widget=I18nTextarea,
|
widget=I18nTextarea,
|
||||||
validators=[PlaceholderValidator(['{order}', '{total}', '{currency}', '{total_with_currency}'])],
|
validators=[PlaceholderValidator(['{order}', '{total}', '{currency}', '{total_with_currency}'])],
|
||||||
)),
|
)),
|
||||||
@@ -910,7 +910,7 @@ class ManualPayment(BasePaymentProvider):
|
|||||||
label=_('Payment process description for pending orders'),
|
label=_('Payment process description for pending orders'),
|
||||||
help_text=_('This text will be shown on the order confirmation page for pending orders. '
|
help_text=_('This text will be shown on the order confirmation page for pending orders. '
|
||||||
'It should instruct the user on how to proceed with the payment. You can use '
|
'It should instruct the user on how to proceed with the payment. You can use '
|
||||||
'the placeholders {order}, {total}, {currency} and {total_with_currency}'),
|
'the placeholders {order}, {total}, {currency} and {total_with_currency}.'),
|
||||||
widget=I18nTextarea,
|
widget=I18nTextarea,
|
||||||
validators=[PlaceholderValidator(['{order}', '{total}', '{currency}', '{total_with_currency}'])],
|
validators=[PlaceholderValidator(['{order}', '{total}', '{currency}', '{total_with_currency}'])],
|
||||||
)),
|
)),
|
||||||
@@ -1199,7 +1199,7 @@ class GiftCardPayment(BasePaymentProvider):
|
|||||||
if not gc.accepted_by(self.event.organizer): # noqa - just a safeguard
|
if not gc.accepted_by(self.event.organizer): # noqa - just a safeguard
|
||||||
raise PaymentException(_("This gift card is not accepted by this event organizer."))
|
raise PaymentException(_("This gift card is not accepted by this event organizer."))
|
||||||
if payment.amount > gc.value: # noqa - just a safeguard
|
if payment.amount > gc.value: # noqa - just a safeguard
|
||||||
raise PaymentException(_("This gift card was used in the meantime. Please try again"))
|
raise PaymentException(_("This gift card was used in the meantime. Please try again."))
|
||||||
if gc.expires and gc.expires < now(): # noqa - just a safeguard
|
if gc.expires and gc.expires < now(): # noqa - just a safeguard
|
||||||
messages.error(request, _("This gift card is no longer valid."))
|
messages.error(request, _("This gift card is no longer valid."))
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ DEFAULTS = {
|
|||||||
'form_kwargs': dict(
|
'form_kwargs': dict(
|
||||||
label=_("Show net prices instead of gross prices in the product list (not recommended!)"),
|
label=_("Show net prices instead of gross prices in the product list (not recommended!)"),
|
||||||
help_text=_("Independent of your choice, the cart will show gross prices as this is the price that needs to be "
|
help_text=_("Independent of your choice, the cart will show gross prices as this is the price that needs to be "
|
||||||
"paid"),
|
"paid."),
|
||||||
|
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -704,7 +704,7 @@ class ItemBundleFormSet(I18nFormSet):
|
|||||||
|
|
||||||
if 'itemvar' in form.cleaned_data:
|
if 'itemvar' in form.cleaned_data:
|
||||||
if form.cleaned_data['itemvar'] in ivs:
|
if form.cleaned_data['itemvar'] in ivs:
|
||||||
raise ValidationError(_('You added the same bundled product twice'))
|
raise ValidationError(_('You added the same bundled product twice.'))
|
||||||
|
|
||||||
ivs.add(form.cleaned_data['itemvar'])
|
ivs.add(form.cleaned_data['itemvar'])
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class BankTransferApp(AppConfig):
|
|||||||
category = 'PAYMENT'
|
category = 'PAYMENT'
|
||||||
version = version
|
version = version
|
||||||
description = _("This plugin allows you to receive payments " +
|
description = _("This plugin allows you to receive payments " +
|
||||||
"via bank transfer ")
|
"via bank transfer.")
|
||||||
|
|
||||||
def ready(self):
|
def ready(self):
|
||||||
from . import signals # NOQA
|
from . import signals # NOQA
|
||||||
|
|||||||
Reference in New Issue
Block a user