forked from CGM_Public/pretix_original
Order-exports: localize salutation (#3160)
This commit is contained in:
committed by
GitHub
parent
c52ebb4ba9
commit
8a6488fd81
@@ -3051,6 +3051,13 @@ def concatenation_for_salutation(d):
|
||||
return " ".join(filter(None, (salutation, title, given_name, family_name)))
|
||||
|
||||
|
||||
def get_name_parts_localized(name_parts, key):
|
||||
value = name_parts.get(key, "")
|
||||
if key == "salutation":
|
||||
return pgettext_lazy("person_name_salutation", value)
|
||||
return value
|
||||
|
||||
|
||||
PERSON_NAME_SCHEMES = OrderedDict([
|
||||
('given_family', {
|
||||
'fields': (
|
||||
|
||||
Reference in New Issue
Block a user