Skip to content

Commit

Permalink
Fix python format string related xgettext warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Hall committed Jan 23, 2025
1 parent f1a6d55 commit 71cd4d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gramps/gui/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ def add_idformats_panel(self, configdialog):
row += 1
label = self.add_text(
grid,
_(
_( # xgettext: no-python-format
"Default Gramps ID formats containing a letter prefix"
' followed by a numerical string. "I%04d" creates IDs'
" from I0000 to I9999. Large databases may need larger"
Expand Down
8 changes: 5 additions & 3 deletions gramps/plugins/webreport/surnamelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,11 @@ def output_surname_records(self, index, tbody, name_format):
char = uniname(bucket_letter)
except (ValueError, TypeError) as dummy_err:
char = " "
ttle = self._("Surnames beginning with " "letter '%s' %s") % (
bucket_letter,
char,
ttle = self._(
"Surnames beginning with letter '{letter}' {char}"
).format(
letter=bucket_letter,
char=char,
)
hyper = Html(
"a",
Expand Down

0 comments on commit 71cd4d0

Please sign in to comment.