Compare commits

..
Author SHA1 Message Date
Mira c285ee2d8c Implement hidden_if_item_available_mode option (Z#23177008) (#4776) 2025-01-24 14:08:41 +01:00
10 changed files with 101 additions and 106 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ dependencies = [
"pycountry",
"pycparser==2.22",
"pycryptodome==3.21.*",
"pypdf==5.2.*",
"pypdf==5.1.*",
"python-bidi==0.6.*", # Support for Arabic in reportlab
"python-dateutil==2.9.*",
"pytz",
+8 -5
View File
@@ -1025,9 +1025,10 @@ class BaseInvoiceAddressForm(forms.ModelForm):
'autocomplete': 'address-level2',
}),
'company': forms.TextInput(attrs={
'data-display-dependency': '#id_is_business_1',
'autocomplete': 'organization',
}),
'vat_id': forms.TextInput(),
'vat_id': forms.TextInput(attrs={'data-display-dependency': '#id_is_business_1'}),
'internal_reference': forms.TextInput,
}
labels = {
@@ -1058,8 +1059,10 @@ class BaseInvoiceAddressForm(forms.ModelForm):
super().__init__(*args, **kwargs)
self.fields["company"].widget.attrs["data-display-dependency"] = f'input[name="{self.add_prefix("is_business")}"][value="business"]'
self.fields["vat_id"].widget.attrs["data-display-dependency"] = f'input[name="{self.add_prefix("is_business")}"][value="business"]'
# If an individual or company address is acceptable, #id_is_business_0 == individual, _1 == company.
# However, if only company addresses are acceptable, #id_is_business_0 == company and is the only choice
self.fields["company"].widget.attrs["data-display-dependency"] = f'#id_{self.add_prefix("is_business")}_{int(not self.company_required)}'
self.fields["vat_id"].widget.attrs["data-display-dependency"] = f'#id_{self.add_prefix("is_business")}_{int(not self.company_required)}'
if not self.ask_vat_id:
del self.fields['vat_id']
@@ -1140,9 +1143,9 @@ class BaseInvoiceAddressForm(forms.ModelForm):
)
if self.address_required and not self.company_required and not self.all_optional:
if not event.settings.invoice_name_required:
self.fields['name_parts'].widget.attrs['data-required-if'] = f'input[name="{self.add_prefix("is_business")}"][value="individual"]'
self.fields['name_parts'].widget.attrs['data-required-if'] = f'#id_{self.add_prefix("is_business")}_0'
self.fields['name_parts'].widget.attrs['data-no-required-attr'] = '1'
self.fields['company'].widget.attrs['data-required-if'] = f'input[name="{self.add_prefix("is_business")}"][value="business"]'
self.fields['company'].widget.attrs['data-required-if'] = f'#id_{self.add_prefix("is_business")}_1'
if not event.settings.invoice_address_beneficiary:
del self.fields['beneficiary']
@@ -13,6 +13,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="item",
name="hidden_if_item_available_mode",
field=models.CharField(default="hide", max_length=16),
field=models.CharField(default="hide", max_length=16, null=True),
),
]
@@ -0,0 +1,18 @@
# Generated by Django 4.2.16 on 2025-01-24 12:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("pretixbase", "0276_item_hidden_if_item_available_mode"),
]
operations = [
migrations.AlterField(
model_name="item",
name="hidden_if_item_available_mode",
field=models.CharField(default="hide", max_length=16),
),
]
+2 -6
View File
@@ -338,7 +338,7 @@ class CheckinErrorLogEntryType(OrderLogEntryType):
else:
data['list'] = _("(unknown)")
data['barcode'] = data.get('barcode', '')[:16]
data['barcode'] = data.get('barcode')[:16]
data['posid'] = logentry.parsed_data.get('positionid', '?')
if 'datetime' in data:
@@ -351,7 +351,6 @@ class CheckinErrorLogEntryType(OrderLogEntryType):
return str(plain_without_dt).format_map(data)
@log_entry_types.new('pretix.event.checkin')
class CheckinLogEntryType(CheckinErrorLogEntryType):
def display(self, logentry: LogEntry, data):
if data.get('type') == Checkin.TYPE_EXIT:
@@ -378,7 +377,6 @@ class CheckinLogEntryType(CheckinErrorLogEntryType):
)
@log_entry_types.new()
class OrderConsentLogEntryType(OrderLogEntryType):
action_type = 'pretix.event.order.consent'
@@ -388,7 +386,6 @@ class OrderConsentLogEntryType(OrderLogEntryType):
)
@log_entry_types.new()
class OrderCanceledLogEntryType(OrderLogEntryType):
action_type = 'pretix.event.order.canceled'
@@ -400,7 +397,6 @@ class OrderCanceledLogEntryType(OrderLogEntryType):
return _('The order has been canceled.')
@log_entry_types.new()
class OrderPrintLogEntryType(OrderLogEntryType):
action_type = 'pretix.event.order.print'
@@ -533,7 +529,7 @@ class VoucherRedeemedLogEntryType(VoucherLogEntryType):
})
return format_html(
self.plain,
order_code=format_html('<a href="{}">{}</a>', url, data.get('order_code', '?')),
order_code=format_html('<a href="{}">{}</a>', url, data('order_code', '?')),
)
+2 -3
View File
@@ -62,8 +62,7 @@ class MetricsMiddleware(object):
t0 = time.perf_counter()
resp = self.get_response(request)
tdiff = time.perf_counter() - t0
if url.url_name:
pretix_view_duration_seconds.observe(tdiff, status_code=resp.status_code, method=request.method,
url_name=url.namespace + ':' + url.url_name)
pretix_view_duration_seconds.observe(tdiff, status_code=resp.status_code, method=request.method,
url_name=url.namespace + ':' + url.url_name)
return resp
+14 -16
View File
@@ -8,8 +8,8 @@ msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-21 16:42+0000\n"
"PO-Revision-Date: 2025-01-25 22:00+0000\n"
"Last-Translator: Rosariocastellana <rosariocastellana@gmail.com>\n"
"PO-Revision-Date: 2024-11-24 01:00+0000\n"
"Last-Translator: gabriblas <github@unowen.simplelogin.com>\n"
"Language-Team: Italian <https://translate.pretix.eu/projects/pretix/pretix/"
"it/>\n"
"Language: it\n"
@@ -17,7 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.9.2\n"
"X-Generator: Weblate 5.8.3\n"
#: pretix/_base_settings.py:87
msgid "English"
@@ -93,7 +93,7 @@ msgstr "Italiano"
#: pretix/_base_settings.py:105
msgid "Japanese"
msgstr "Giapponese"
msgstr ""
#: pretix/_base_settings.py:106
msgid "Latvian"
@@ -3415,8 +3415,6 @@ msgid ""
"The relevant plugin is currently not active. To activate it, click here to "
"go to the plugin settings."
msgstr ""
"Il plugin in questione non è al momento attivo. Per attivarlo, clicca qui "
"per andare alle impostazioni del plugin."
#: pretix/base/logentrytypes.py:50
#, fuzzy
@@ -3427,48 +3425,48 @@ msgstr "Questo prodotto non è al momento disponibile."
#: pretix/base/logentrytypes.py:183
#, python-brace-format
msgid "Order {val}"
msgstr "Ordine {val}"
msgstr ""
#: pretix/base/logentrytypes.py:194
#, python-brace-format
msgid "Voucher {val}…"
msgstr "Voucher {val}…"
msgstr ""
#: pretix/base/logentrytypes.py:205
#, python-brace-format
msgid "Product {val}"
msgstr "Prodotto {val}"
msgstr ""
#: pretix/base/logentrytypes.py:211
#, python-brace-format
msgctxt "subevent"
msgid "Date {val}"
msgstr "Data {val}"
msgstr ""
#: pretix/base/logentrytypes.py:217
#, python-brace-format
msgid "Quota {val}"
msgstr "Quota {val}"
msgstr ""
#: pretix/base/logentrytypes.py:223
#, python-brace-format
msgid "Discount {val}"
msgstr "Sconto {val}"
msgstr ""
#: pretix/base/logentrytypes.py:229
#, python-brace-format
msgid "Category {val}"
msgstr "Categoria {val}"
msgstr ""
#: pretix/base/logentrytypes.py:235
#, python-brace-format
msgid "Question {val}"
msgstr "Domanda {val}"
msgstr ""
#: pretix/base/logentrytypes.py:241
#, python-brace-format
msgid "Tax rule {val}"
msgstr "Regola fiscale {val}"
msgstr ""
#: pretix/base/media.py:71
msgid "Barcode / QR-Code"
@@ -4773,7 +4771,7 @@ msgstr ""
#: pretix/base/models/items.py:455
msgid "Require either an existing or a new medium to be used"
msgstr "Richiede l'utilizzo di un mezzo esistente o di uno nuovo"
msgstr ""
#: pretix/base/models/items.py:471 pretix/base/models/items.py:1446
msgid "Category"
+17 -10
View File
@@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-21 16:42+0000\n"
"PO-Revision-Date: 2025-01-27 10:00+0000\n"
"PO-Revision-Date: 2025-01-22 16:00+0000\n"
"Last-Translator: Hijiri Umemoto <hijiri@umemoto.org>\n"
"Language-Team: Japanese <https://translate.pretix.eu/projects/pretix/pretix/"
"ja/>\n"
@@ -2956,7 +2956,7 @@ msgstr ""
#: pretix/base/forms/user.py:56 pretix/control/forms/users.py:45
#: pretix/presale/forms/customer.py:283 pretix/presale/forms/customer.py:371
msgid "Please enter the same password twice"
msgstr "同じパスワードを回入力してください"
msgstr "同じパスワードを2回入力してください"
#: pretix/base/forms/auth.py:172 pretix/base/forms/auth.py:224
#: pretix/presale/forms/customer.py:296 pretix/presale/forms/customer.py:390
@@ -3401,12 +3401,13 @@ msgstr "イベントの日程: {date_range}"
msgid ""
"The relevant plugin is currently not active. To activate it, click here to "
"go to the plugin settings."
msgstr "関連するプラグインは、現在アクティブではありません。アクティブにするには、こ"
"こをクリックしてプラグイン設定に進んでください。"
msgstr ""
#: pretix/base/logentrytypes.py:50
#, fuzzy
#| msgid "This product is currently not available."
msgid "The relevant plugin is currently not active."
msgstr "関連するプラグインは、現在無効です。"
msgstr "この製品は現在利用できません。"
#: pretix/base/logentrytypes.py:183
#, python-brace-format
@@ -16352,17 +16353,22 @@ msgid "A user has been removed from the event team."
msgstr "ユーザーがイベントチームから削除されました。"
#: pretix/control/logdisplay.py:721
#, fuzzy
#| msgid "A plugin has been enabled."
msgid "The plugin has been enabled."
msgstr "プラグインが有効になりました。"
#: pretix/control/logdisplay.py:722
#, fuzzy
#| msgid "A plugin has been disabled."
msgid "The plugin has been disabled."
msgstr "プラグインが無効になっています。"
#: pretix/control/logdisplay.py:725
#, python-brace-format
#, fuzzy, python-brace-format
#| msgid "Question {val}"
msgid "Plugin {val}"
msgstr "プラグイン{val}"
msgstr "質問{val}"
#: pretix/control/logdisplay.py:741
msgid "The product has been created."
@@ -29717,9 +29723,10 @@ msgid "An email rule was deleted"
msgstr "電子メールのルールが削除されました"
#: pretix/plugins/sendmail/signals.py:140
#, python-brace-format
#, fuzzy, python-brace-format
#| msgid "Tax rule {val}"
msgid "Mail rule {val}"
msgstr "メールのルール {val}"
msgstr "税金のルール {val}"
#: pretix/plugins/sendmail/templates/pretixplugins/sendmail/history.html:8
msgid ""
@@ -32166,7 +32173,7 @@ msgstr "この製品の価格が自動割引によって削減されました。
#: pretix/presale/templates/pretixpresale/event/fragment_cart.html:346
#, python-format
msgid "%(percent)s %% Discount"
msgstr "%(percent)s %% 割引"
msgstr ""
#: pretix/presale/templates/pretixpresale/event/fragment_cart.html:277
#: pretix/presale/templates/pretixpresale/event/fragment_cart.html:350
+36 -62
View File
@@ -8,8 +8,8 @@ msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-21 16:42+0000\n"
"PO-Revision-Date: 2025-01-27 14:35+0000\n"
"Last-Translator: Cornelius Kibelka <ckibelka-ctr@wikimedia.org>\n"
"PO-Revision-Date: 2024-11-14 20:00+0000\n"
"Last-Translator: Gravity Fox <gravityraposa@gmail.com>\n"
"Language-Team: Portuguese (Brazil) <https://translate.pretix.eu/projects/"
"pretix/pretix/pt_BR/>\n"
"Language: pt_BR\n"
@@ -17,7 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.9.2\n"
"X-Generator: Weblate 5.8.3\n"
#: pretix/_base_settings.py:87
msgid "English"
@@ -93,7 +93,7 @@ msgstr "Italiano"
#: pretix/_base_settings.py:105
msgid "Japanese"
msgstr "Japonês"
msgstr ""
#: pretix/_base_settings.py:106
msgid "Latvian"
@@ -2450,7 +2450,7 @@ msgstr ""
#: pretix/base/exporters/orderlist.py:1019
msgid "Date range (start of transaction)"
msgstr "Intervalo de datas (início da transação)"
msgstr ""
#: pretix/base/exporters/orderlist.py:1025
msgid "Payment states"
@@ -2609,7 +2609,6 @@ msgstr "Cartão Presente"
#: pretix/base/exporters/orderlist.py:1184
msgid "Download a spreadsheet of all gift card transactions."
msgstr ""
"Faça o download de uma planilha de todas as transações com cartões-presente."
#: pretix/base/exporters/orderlist.py:1212
#: pretix/base/exporters/orderlist.py:1259
@@ -2632,7 +2631,7 @@ msgstr "Cartão Presente"
#: pretix/control/forms/filter.py:1413 pretix/control/forms/filter.py:1416
#: pretix/control/templates/pretixcontrol/event/live.html:75
msgid "Test mode"
msgstr "Modo de teste"
msgstr ""
#: pretix/base/exporters/orderlist.py:1218 pretix/base/models/organizer.py:96
#: pretix/control/forms/event.py:110 pretix/control/forms/event.py:116
@@ -2688,13 +2687,11 @@ msgstr "Cartão Presente"
msgid ""
"Download a spreadsheet of all payments or refunds that involve gift cards."
msgstr ""
"Faça o download de uma planilha de todos os pagamentos ou reembolsos que "
"envolvam cartões-presente."
#: pretix/base/exporters/orderlist.py:1259
#: pretix/control/templates/pretixcontrol/giftcards/payment.html:16
msgid "Issuer"
msgstr "Emissor"
msgstr ""
#: pretix/base/exporters/orderlist.py:1286 pretix/control/navigation.py:538
#: pretix/control/navigation.py:556
@@ -2708,16 +2705,14 @@ msgstr "Cartão Presente"
#: pretix/base/exporters/orderlist.py:1289
msgid "Download a spreadsheet of all gift cards including their current value."
msgstr ""
"Faça o download de uma planilha de todos os cartões-presente, incluindo seu "
"valor atual."
#: pretix/base/exporters/orderlist.py:1296
msgid "Show value at"
msgstr "Mostrar o valor em"
msgstr ""
#: pretix/base/exporters/orderlist.py:1299
msgid "Defaults to the time of report."
msgstr "Por padrão, a hora do relatório."
msgstr ""
#: pretix/base/exporters/orderlist.py:1304
#: pretix/base/exporters/orderlist.py:1314 pretix/control/forms/filter.py:518
@@ -2743,20 +2738,20 @@ msgstr "Todos"
#: pretix/base/exporters/orderlist.py:1306 pretix/control/forms/filter.py:1417
msgid "Live"
msgstr "Em tempo real"
msgstr ""
#: pretix/base/exporters/orderlist.py:1315 pretix/control/forms/filter.py:1425
#: pretix/control/templates/pretixcontrol/pdf/index.html:252
msgid "Empty"
msgstr "Vazio"
msgstr ""
#: pretix/base/exporters/orderlist.py:1316 pretix/control/forms/filter.py:1426
msgid "Valid and with value"
msgstr "Válido e com valor"
msgstr ""
#: pretix/base/exporters/orderlist.py:1317 pretix/control/forms/filter.py:1427
msgid "Expired and with value"
msgstr "Expirado e com valor"
msgstr ""
#: pretix/base/exporters/orderlist.py:1318 pretix/control/forms/filter.py:227
#: pretix/control/forms/filter.py:1428 pretix/control/forms/filter.py:2097
@@ -2771,14 +2766,14 @@ msgstr "Expirado"
#: pretix/base/exporters/orderlist.py:1356 pretix/base/models/giftcards.py:98
msgid "Test mode card"
msgstr "Cartão de modo de teste"
msgstr ""
#: pretix/base/exporters/orderlist.py:1358
#: pretix/base/modelimport_orders.py:516 pretix/base/models/giftcards.py:102
#: pretix/control/templates/pretixcontrol/order/index.html:202
#: pretix/control/templates/pretixcontrol/organizers/giftcards.html:62
msgid "Expiry date"
msgstr "Data de expiração"
msgstr ""
#: pretix/base/exporters/orderlist.py:1359 pretix/control/forms/orders.py:875
msgid "Special terms and conditions"
@@ -2879,24 +2874,23 @@ msgstr "Lista de espera"
#: pretix/base/exporters/waitinglist.py:43
msgid "Download a spread sheet with all your waiting list data."
msgstr ""
"Faça o download de uma planilha com todos os dados de sua lista de espera."
#: pretix/base/exporters/waitinglist.py:49
#: pretix/control/templates/pretixcontrol/waitinglist/index.html:102
msgid "All entries"
msgstr "Todos os registros"
msgstr ""
#: pretix/base/exporters/waitinglist.py:54
#: pretix/control/templates/pretixcontrol/waitinglist/index.html:105
msgid "Waiting for a voucher"
msgstr "Aguardando um voucher"
msgstr ""
#: pretix/base/exporters/waitinglist.py:59
#: pretix/control/templates/pretixcontrol/waitinglist/index.html:107
#: pretix/control/templates/pretixcontrol/waitinglist/index.html:227
#: pretix/control/views/waitinglist.py:326
msgid "Voucher assigned"
msgstr "Voucher atribuído"
msgstr ""
#: pretix/base/exporters/waitinglist.py:64
#: pretix/control/templates/pretixcontrol/waitinglist/index.html:110
@@ -2909,7 +2903,7 @@ msgstr "Descrição da categoria"
#: pretix/control/templates/pretixcontrol/waitinglist/index.html:223
#: pretix/control/views/waitinglist.py:322
msgid "Voucher redeemed"
msgstr "Voucher resgatado"
msgstr ""
#: pretix/base/exporters/waitinglist.py:80
#: pretix/control/templates/pretixcontrol/waitinglist/index.html:116
@@ -2924,7 +2918,7 @@ msgstr "O carrinho expirou"
#: pretix/control/forms/event.py:1764
#: pretix/control/templates/pretixcontrol/items/index.html:38
msgid "Product name"
msgstr "Nome do produto"
msgstr ""
#: pretix/base/exporters/waitinglist.py:115
#: pretix/base/modelimport_orders.py:95 pretix/base/modelimport_vouchers.py:60
@@ -2938,7 +2932,7 @@ msgstr "Data"
#: pretix/base/exporters/waitinglist.py:119
#: pretix/control/views/waitinglist.py:308
msgid "Priority"
msgstr "Prioridade"
msgstr ""
#: pretix/base/exporters/waitinglist.py:121
#: pretix/base/modelimport_vouchers.py:39 pretix/base/models/vouchers.py:190
@@ -2957,7 +2951,7 @@ msgstr "Código do voucher"
#: pretix/base/forms/__init__.py:118
#, python-brace-format
msgid "You can use {markup_name} in this field."
msgstr "Você pode usar {markup_name} nesse campo."
msgstr ""
#: pretix/base/forms/__init__.py:178
#, python-format
@@ -2965,8 +2959,6 @@ msgid ""
"Due to technical reasons you cannot set inputs, that need to be masked (e.g. "
"passwords), to %(value)s."
msgstr ""
"Por motivos técnicos, não é possível definir entradas que precisam ser "
"mascaradas (por exemplo, senhas), como %(value)s."
#: pretix/base/forms/auth.py:61 pretix/base/forms/auth.py:179
msgid "Keep me logged in"
@@ -2974,12 +2966,12 @@ msgstr "Mantenha-me conectado"
#: pretix/base/forms/auth.py:65 pretix/base/forms/auth.py:272
msgid "This combination of credentials is not known to our system."
msgstr "Essa combinação de credenciais não é conhecida pelo nosso sistema."
msgstr ""
#: pretix/base/forms/auth.py:66 pretix/base/forms/user.py:57
#: pretix/presale/forms/customer.py:372 pretix/presale/forms/customer.py:444
msgid "For security reasons, please wait 5 minutes before you try again."
msgstr "Por motivos de segurança, aguarde 5 minutos antes de tentar novamente."
msgstr ""
#: pretix/base/forms/auth.py:67 pretix/base/forms/auth.py:273
msgid "This account is inactive."
@@ -3026,43 +3018,35 @@ msgstr "Referência interna"
#: pretix/base/forms/questions.py:320
msgctxt "phonenumber"
msgid "Phone number (without international area code)"
msgstr "Número de telefone (sem código de área internacional)"
msgstr ""
#: pretix/base/forms/questions.py:481
msgid ""
"You uploaded an image in landscape orientation. Please upload an image in "
"portrait orientation."
msgstr ""
"Você fez o upload de uma imagem na orientação paisagem. Carregue uma imagem "
"na orientação retrato."
#: pretix/base/forms/questions.py:484
msgid "Please upload an image where the width is 3/4 of the height."
msgstr "Carregue uma imagem em que a largura seja 3/4 da altura."
msgstr ""
#: pretix/base/forms/questions.py:487
msgid ""
"The file you uploaded has a very large number of pixels, please upload an "
"image no larger than 10000 x 10000 pixels."
msgstr ""
"O arquivo que você carregou tem um número muito grande de pixels. Carregue "
"uma imagem que não seja maior que 10.000 x 10.000 pixels."
#: pretix/base/forms/questions.py:490 pretix/helpers/images.py:75
msgid ""
"Upload a valid image. The file you uploaded was either not an image or a "
"corrupted image."
msgstr ""
"Faça upload de uma imagem válida. O arquivo que você carregou não era uma "
"imagem ou era uma imagem corrompida."
#: pretix/base/forms/questions.py:633 pretix/base/forms/questions.py:642
msgid ""
"If you keep this empty, the ticket will be valid starting at the time of "
"purchase."
msgstr ""
"Se você mantiver esse campo vazio, o bilhete será válido a partir do momento "
"da compra."
#: pretix/base/forms/questions.py:689 pretix/base/forms/questions.py:1014
msgid "Street and Number"
@@ -3080,20 +3064,16 @@ msgid ""
"Optional, but depending on the country you reside in we might need to charge "
"you additional taxes if you do not enter it."
msgstr ""
"Opcional, mas, dependendo do país em que você reside, talvez seja necessário "
"cobrar impostos adicionais se você não os inserir."
#: pretix/base/forms/questions.py:1071 pretix/base/forms/questions.py:1077
msgid "If you are registered in Switzerland, you can enter your UID instead."
msgstr "Se você estiver registrado na Suíça, poderá inserir seu UID."
msgstr ""
#: pretix/base/forms/questions.py:1075
msgid ""
"Optional, but it might be required for you to claim tax benefits on your "
"invoice depending on your and the sellers country of residence."
msgstr ""
"Opcional, mas pode ser necessário para que você solicite benefícios fiscais "
"em sua fatura, dependendo do seu país de residência e do país do vendedor."
#: pretix/base/forms/questions.py:1174
msgid "You need to provide a company name."
@@ -3129,7 +3109,7 @@ msgstr "Senha incorreta."
#: pretix/base/forms/user.py:58
msgid "Please choose a password different to your current one."
msgstr "Escolha uma senha diferente da atual."
msgstr ""
#: pretix/base/forms/user.py:63 pretix/presale/forms/customer.py:379
#: pretix/presale/forms/customer.py:448
@@ -3184,10 +3164,6 @@ msgid ""
"up. Please note: to use literal \"{\" or \"}\", you need to double them as "
"\"{{\" and \"}}\"."
msgstr ""
"Há um erro na sintaxe de seu placeholder. Verifique se os colchetes “{” de "
"abertura e “}” de fechamento em seus placeholders estão corretos. Observação:"
" para usar literalmente “{” ou “}”, você precisa duplicá-los como “{{” e "
"“}}”."
#: pretix/base/forms/validators.py:72 pretix/control/views/event.py:758
#, fuzzy, python-format
@@ -3372,7 +3348,7 @@ msgstr "Montante"
#, python-brace-format
msgctxt "invoice"
msgid "Single price: {net_price} net / {gross_price} gross"
msgstr "Preço único: {net_price} líquido / {gross_price} bruto"
msgstr ""
#: pretix/base/invoice.py:668
#, fuzzy, python-brace-format
@@ -3396,7 +3372,7 @@ msgstr "Ordens pagas"
#: pretix/base/invoice.py:707
msgctxt "invoice"
msgid "Outstanding payments"
msgstr "Pagamentos pendentes"
msgstr ""
#: pretix/base/invoice.py:724
#, fuzzy
@@ -3462,7 +3438,7 @@ msgstr ""
#: pretix/base/invoice.py:867
msgid "Default invoice renderer (European-style letter)"
msgstr "Renderizador de faturas padrão (letra no estilo europeu)"
msgstr ""
#: pretix/base/invoice.py:956
#, fuzzy
@@ -3474,7 +3450,7 @@ msgstr "Você precisa selecionar uma data."
#: pretix/base/invoice.py:1003
msgid "Simplified invoice renderer"
msgstr "Renderizador de faturas simplificado"
msgstr ""
#: pretix/base/invoice.py:1022
#, fuzzy, python-brace-format
@@ -3489,8 +3465,6 @@ msgid ""
"The relevant plugin is currently not active. To activate it, click here to "
"go to the plugin settings."
msgstr ""
"O plug-in relevante não está ativo no momento. Para ativá-lo, clique aqui "
"para acessar as configurações do plug-in."
#: pretix/base/logentrytypes.py:50
#, fuzzy
@@ -3522,7 +3496,7 @@ msgstr "Data {val}"
#: pretix/base/logentrytypes.py:217
#, python-brace-format
msgid "Quota {val}"
msgstr "Contingente {val}"
msgstr ""
#: pretix/base/logentrytypes.py:223
#, fuzzy, python-brace-format
@@ -3547,12 +3521,12 @@ msgstr "Norma fiscal {val}"
#: pretix/base/media.py:71
msgid "Barcode / QR-Code"
msgstr "Código de barras / código QR"
msgstr ""
#: pretix/base/media.py:88
#: pretix/control/templates/pretixcontrol/organizers/edit.html:237
msgid "NFC UID-based"
msgstr "Baseado em NFC UID"
msgstr ""
#: pretix/base/migrations/0077_auto_20171124_1629.py:33
#: pretix/base/migrations/0077_auto_20171124_1629_squashed_0088_auto_20180328_1217.py:35
@@ -3561,7 +3535,7 @@ msgstr "Lista padrão"
#: pretix/base/modelimport.py:112
msgid "Keep empty"
msgstr "Manter vazio"
msgstr ""
#: pretix/base/modelimport.py:139
#, python-brace-format
+2 -2
View File
@@ -51,8 +51,8 @@ def register_payment_provider(sender, **kwargs):
class PaypalEventLogEntryType(EventLogEntryType):
action_type = 'pretix.plugins.paypal.event'
def display(self, logentry, data):
event_type = data.get('event_type')
def display(self, logentry):
event_type = logentry.parsed_data.get('event_type')
text = None
plains = {
'PAYMENT.SALE.COMPLETED': _('Payment completed.'),