Improve string quality and consistency

This commit is contained in:
Raphael Michel
2025-08-19 18:35:35 +02:00
parent 076233cba8
commit c200072471
6 changed files with 17 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ from collections import namedtuple
from functools import partial from functools import partial
from django.db.models import Max, Q from django.db.models import Max, Q
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _, pgettext_lazy
from pretix.base.models import Checkin, InvoiceAddress, Order, Question from pretix.base.models import Checkin, InvoiceAddress, Order, Question
from pretix.base.settings import PERSON_NAME_SCHEMES from pretix.base.settings import PERSON_NAME_SCHEMES
@@ -132,7 +132,7 @@ CAT_PRODUCT = DataFieldCategory(20, _('Product details'))
CAT_ORDER = DataFieldCategory(21, _('Order details')) CAT_ORDER = DataFieldCategory(21, _('Order details'))
CAT_INVOICE_ADDRESS = DataFieldCategory(22, _('Invoice address')) CAT_INVOICE_ADDRESS = DataFieldCategory(22, _('Invoice address'))
CAT_EVENT = DataFieldCategory(30, _('Event information')) CAT_EVENT = DataFieldCategory(30, _('Event information'))
CAT_EVENT_OR_SUBEVENT = DataFieldCategory(31, _('Event or subevent information')) CAT_EVENT_OR_SUBEVENT = DataFieldCategory(31, pgettext_lazy('subevent', 'Event or date information'))
DataFieldInfo = namedtuple( DataFieldInfo = namedtuple(
'DataFieldInfo', 'DataFieldInfo',
@@ -524,7 +524,7 @@ def get_data_fields(event, for_model=None):
ORDER, ORDER,
CAT_ORDER, CAT_ORDER,
"order_locale", "order_locale",
_("Order language code"), _("Order locale"),
Question.TYPE_CHOICE, Question.TYPE_CHOICE,
[(lc, lc) for lc in event.settings.locales], [(lc, lc) for lc in event.settings.locales],
lambda order: [order.locale], lambda order: [order.locale],
@@ -542,7 +542,7 @@ def get_data_fields(event, for_model=None):
ORDER, ORDER,
CAT_ORDER, CAT_ORDER,
"presale_order_url", "presale_order_url",
_("Order URL"), _("Order link"),
Question.TYPE_STRING, Question.TYPE_STRING,
None, None,
lambda order: build_absolute_uri( lambda order: build_absolute_uri(
@@ -557,7 +557,7 @@ def get_data_fields(event, for_model=None):
ORDER_POSITION, ORDER_POSITION,
CAT_ORDER_POSITION, CAT_ORDER_POSITION,
"presale_ticket_url", "presale_ticket_url",
_("Ticket URL"), _("Ticket link"),
Question.TYPE_STRING, Question.TYPE_STRING,
None, None,
lambda op: build_absolute_uri( lambda op: build_absolute_uri(

View File

@@ -50,7 +50,7 @@ class ItalianSdITransmissionType(TransmissionType):
required=False, required=False,
), ),
"transmission_it_sdi_pec": forms.EmailField( "transmission_it_sdi_pec": forms.EmailField(
label=pgettext_lazy("italian_invoice", "Address for certified electronical mail"), label=pgettext_lazy("italian_invoice", "Address for certified electronic mail"),
widget=forms.EmailInput() widget=forms.EmailInput()
), ),
"transmission_it_sdi_recipient_code": forms.CharField( "transmission_it_sdi_recipient_code": forms.CharField(

View File

@@ -527,7 +527,7 @@ def pretixcontrol_orderposition_blocked_display(sender: Event, orderposition, bl
'pretix.event.order.invoice.sent': _('The invoice {full_invoice_no} has been sent.'), 'pretix.event.order.invoice.sent': _('The invoice {full_invoice_no} has been sent.'),
'pretix.event.order.invoice.sending_failed': _('The transmission of invoice {full_invoice_no} has failed.'), 'pretix.event.order.invoice.sending_failed': _('The transmission of invoice {full_invoice_no} has failed.'),
'pretix.event.order.invoice.testmode_ignored': _('Invoice {full_invoice_no} has not been transmitted because ' 'pretix.event.order.invoice.testmode_ignored': _('Invoice {full_invoice_no} has not been transmitted because '
'no transmission provider supports test mode invoices.'), 'the transmission provider does not support test mode invoices.'),
'pretix.event.order.invoice.retransmitted': _('The invoice {full_invoice_no} has been scheduled for retransmission.'), 'pretix.event.order.invoice.retransmitted': _('The invoice {full_invoice_no} has been scheduled for retransmission.'),
'pretix.event.order.comment': _('The order\'s internal comment has been updated.'), 'pretix.event.order.comment': _('The order\'s internal comment has been updated.'),
'pretix.event.order.custom_followup_at': _('The order\'s follow-up date has been updated.'), 'pretix.event.order.custom_followup_at': _('The order\'s follow-up date has been updated.'),

View File

@@ -22,7 +22,7 @@
{% elif plugin.level == "event_organizer" %} {% elif plugin.level == "event_organizer" %}
<p> <p>
{% blocktrans trimmed with name=plugin.name %} {% blocktrans trimmed with name=plugin.name %}
The plugin "{{ name }}" is enabled for your organizer account, but also needs to be enabled for the The plugin "{{ name }}" is enabled for your organizer account, but also needs to be enabled for the
specific events you want to use it with. specific events you want to use it with.
{% endblocktrans %} {% endblocktrans %}
</p> </p>

View File

@@ -93,6 +93,7 @@ csv
Customer Customer
CZK CZK
Dashboard Dashboard
Datensynchronisation
Debug Debug
dekodi dekodi
deliverability deliverability
@@ -242,6 +243,7 @@ PayPals
PayU PayU
PCI PCI
Personalisierung Personalisierung
PEPPOl
PKCE PKCE
Platzhalterzeichen Platzhalterzeichen
Play Play
@@ -298,6 +300,7 @@ schiefgeht
schiefgelaufen schiefgelaufen
Scope Scope
Scopes Scopes
SdI
sechsstelligen sechsstelligen
Secret Secret
Security Security
@@ -330,6 +333,7 @@ Stripe
Stripes Stripes
Strong Strong
Swish Swish
Synchronisations
systemweiten systemweiten
Tab Tab
tag tag
@@ -377,6 +381,7 @@ USt
Überweisungs Überweisungs
Überzahlten Überzahlten
Validierung Validierung
Validierungsregeln
Venmo Venmo
Veranstalterdomain Veranstalterdomain
Veranstaltereinstellungen Veranstaltereinstellungen

View File

@@ -108,6 +108,7 @@ overpayment
OXXO OXXO
Pago Pago
PayU PayU
PEPPOL
PCI PCI
PKCE PKCE
PDFs PDFs
@@ -134,12 +135,15 @@ redemptions
Referer Referer
renderer renderer
renderers renderers
retransmission
Retransmit
Revolut Revolut
Sa Sa
Samplecity Samplecity
SAQ SAQ
SCA SCA
selectable selectable
SdI
SEPA SEPA
silvicultural silvicultural
smtp smtp