Order-exports: localize salutation (#3160)

This commit is contained in:
Richard Schreiber
2023-03-22 13:12:38 +01:00
committed by GitHub
parent c52ebb4ba9
commit 8a6488fd81
4 changed files with 15 additions and 17 deletions

View File

@@ -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': (