Skip to content

Commit

Permalink
name fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dsblank committed Oct 13, 2024
1 parent 7ac4f7b commit 08869eb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions gramps/gen/display/name.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
_ = glocale.translation.sgettext
from ..lib.name import Name
from ..lib.nameorigintype import NameOriginType
from ..lib.serialize import to_dict

try:
from ..config import config
Expand Down Expand Up @@ -102,10 +103,8 @@
_PRIMARY_IN_LIST = "primary"
_TYPE_IN_LIST = "origintype"
_CONNECTOR_IN_LIST = "connector"
# FIXME: question: are these translated? Hope not!
_ORIGINPATRO = "Patronymic" # NameOriginType.PATRONYMIC
_ORIGINMATRO = "Matronymic" # NameOriginType.MATRONYMIC

_ORIGINPATRO = str(NameOriginType(NameOriginType.PATRONYMIC))
_ORIGINMATRO = str(NameOriginType(NameOriginType.MATRONYMIC))
_ACT = True
_INA = False

Expand Down Expand Up @@ -859,8 +858,6 @@ def fn(first, raw_surname_list, suffix, title, call,):
return self._make_fn(format_str, d, args)

def format_str(self, name, format_str):
# FIXME: edit the raw format functions
return "XXX"
return self._format_str_base(
name.first_name,
name.surname_list,
Expand Down Expand Up @@ -927,7 +924,7 @@ def _format_str_base(
try:
s = func(
first,
[surn.serialize() for surn in surname_list],
[to_dict(surn) for surn in surname_list],
suffix,
title,
call,
Expand Down

0 comments on commit 08869eb

Please sign in to comment.