Skip to content

Commit

Permalink
Remove unnecessary translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Hall committed Feb 1, 2025
1 parent 875fe53 commit 4779b8f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions gramps/plugins/view/relview.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ def write_title(self, person):
else:
birth_title = self.bth

subgrid.attach(widgets.BasicLabel(_("%s") % birth_title), 1, 1, 1, 1)
subgrid.attach(widgets.BasicLabel(birth_title), 1, 1, 1, 1)
birthwidget = widgets.BasicLabel(self.format_event(birth))
birthwidget.set_selectable(True)
subgrid.attach(birthwidget, 2, 1, 1, 1)
Expand All @@ -787,9 +787,7 @@ def write_title(self, person):
age = (death_date - birth_date).format(
precision=self.age_precision
)
subgrid.attach(
widgets.BasicLabel(_("%s") % death_title), 1, 2, 1, 1
)
subgrid.attach(widgets.BasicLabel(death_title), 1, 2, 1, 1)
deathwidget = widgets.BasicLabel(
"%s (%s)" % (self.format_event(death), age),
Pango.EllipsizeMode.END,
Expand All @@ -811,9 +809,7 @@ def write_title(self, person):
1,
)
else:
subgrid.attach(
widgets.BasicLabel(_("%s") % self.dth), 1, 2, 1, 1
)
subgrid.attach(widgets.BasicLabel(self.dth), 1, 2, 1, 1)
subgrid.attach(
widgets.BasicLabel(
"%s (%s)" % (_("unknown"), age), Pango.EllipsizeMode.END
Expand All @@ -826,7 +822,7 @@ def write_title(self, person):
showed_death = True

if not showed_death:
subgrid.attach(widgets.BasicLabel(_("%s") % death_title), 1, 2, 1, 1)
subgrid.attach(widgets.BasicLabel(death_title), 1, 2, 1, 1)
deathwidget = widgets.BasicLabel(self.format_event(death))
deathwidget.set_selectable(True)
subgrid.attach(deathwidget, 2, 2, 1, 1)
Expand Down

0 comments on commit 4779b8f

Please sign in to comment.