forked from CGM_Public/pretix_original
Localize salutation of invoice address in editor/PDFs
This commit is contained in:
committed by
GitHub
parent
ead70686b4
commit
40297b3d3f
@@ -530,7 +530,10 @@ def _get_attendee_name_part(key, op, order, ev):
|
||||
|
||||
|
||||
def _get_ia_name_part(key, op, order, ev):
|
||||
return order.invoice_address.name_parts.get(key, '') if getattr(order, 'invoice_address', None) else ''
|
||||
value = order.invoice_address.name_parts.get(key, '') if getattr(order, 'invoice_address', None) else ''
|
||||
if key == 'salutation' and value:
|
||||
return pgettext('person_name_salutation', value)
|
||||
return value
|
||||
|
||||
|
||||
def get_images(event):
|
||||
|
||||
Reference in New Issue
Block a user