From 6a6fe9b48de1e14501a923a2fd58ec41ef9be9f7 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sun, 18 Dec 2016 14:20:36 -0800 Subject: [PATCH] 7276: translate some currently-untranslated punctuation marks --- gramps/cli/plug/__init__.py | 5 ++- gramps/gen/plug/report/utils.py | 2 +- gramps/gui/configure.py | 38 +++++++++---------- gramps/gui/editors/editattribute.py | 2 +- gramps/gui/editors/editfamily.py | 6 ++- gramps/gui/merge/mergeperson.py | 27 ++++++------- gramps/gui/plug/_windows.py | 2 +- gramps/gui/plug/report/_reportdialog.py | 11 +++--- gramps/gui/views/navigationview.py | 2 +- gramps/plugins/gramplet/sessionloggramplet.py | 3 +- gramps/plugins/gramplet/statsgramplet.py | 18 ++++----- gramps/plugins/view/relview.py | 22 +++++------ 12 files changed, 72 insertions(+), 66 deletions(-) diff --git a/gramps/cli/plug/__init__.py b/gramps/cli/plug/__init__.py index 7d92b6782..e71796ee9 100644 --- a/gramps/cli/plug/__init__.py +++ b/gramps/cli/plug/__init__.py @@ -398,8 +398,9 @@ class CommandLineReport: father = self.database.get_person_from_handle(fhandle) if father: fname = name_displayer.display(father) - text = "%s:\t%s, %s" % (family.get_gramps_id(), - fname, mname) + # translators: needed for French and Arabic, else ignore + text = _("%s:\t%s, %s") % (family.get_gramps_id(), + fname, mname) id_list.append(text) self.options_help[name].append(id_list) elif isinstance(option, NoteOption): diff --git a/gramps/gen/plug/report/utils.py b/gramps/gen/plug/report/utils.py index efe662aa0..ff0a30310 100644 --- a/gramps/gen/plug/report/utils.py +++ b/gramps/gen/plug/report/utils.py @@ -156,7 +156,7 @@ def insert_image(database, doc, photo, user, crop=photo.get_rectangle()) else: user.warn(_("Could not add photo to page"), - "%s: %s" % (filename, _('File does not exist'))) + _("%s: %s") % (filename, _('File does not exist'))) #------------------------------------------------------------------------- # diff --git a/gramps/gui/configure.py b/gramps/gui/configure.py index e0394dd14..e100ede5c 100644 --- a/gramps/gui/configure.py +++ b/gramps/gui/configure.py @@ -327,7 +327,7 @@ class ConfigureDialog(ManagedWindow): """ if not config: config = self.__config - lwidget = BasicLabel("%s: " %label) + lwidget = BasicLabel(_("%s: ") % label) # needed for French, else ignore hbox = Gtk.Box() if path: entry.set_text(path) @@ -351,7 +351,7 @@ class ConfigureDialog(ManagedWindow): if not callback: callback = self.update_entry if label: - lwidget = BasicLabel("%s: " % label) + lwidget = BasicLabel(_("%s: ") % label) # translators: for French entry = Gtk.Entry() if localized_config: entry.set_text(config.get(constant)) @@ -372,7 +372,7 @@ class ConfigureDialog(ManagedWindow): """ if not config: config = self.__config - lwidget = BasicLabel("%s: " % label) + lwidget = BasicLabel(_("%s: ") % label) # needed for French, else ignore entry = Gtk.Entry() entry.set_text(str(config.get(constant))) entry.set_tooltip_markup(helptext) @@ -385,7 +385,7 @@ class ConfigureDialog(ManagedWindow): def add_color(self, grid, label, index, constant, config=None, col=0): if not config: config = self.__config - lwidget = BasicLabel("%s: " % label) + lwidget = BasicLabel(_("%s: ") % label) # needed for French, else ignore hexval = config.get(constant) color = Gdk.color_parse(hexval) entry = Gtk.ColorButton(color=color) @@ -410,7 +410,7 @@ class ConfigureDialog(ManagedWindow): config = self.__config if not callback: callback = self.update_combo - lwidget = BasicLabel("%s: " % label) + lwidget = BasicLabel(_("%s: ") % label) # needed for French, else ignore store = Gtk.ListStore(int, str) for item in opts: store.append(item) @@ -447,7 +447,7 @@ class ConfigureDialog(ManagedWindow): config = self.__config if not callback: callback = self.update_slider - lwidget = BasicLabel("%s: " % label) + lwidget = BasicLabel(_("%s: ") % label) # needed for French, else ignore adj = Gtk.Adjustment(value=config.get(constant), lower=range[0], upper=range[1], step_increment=1, page_increment=0, page_size=0) @@ -469,7 +469,7 @@ class ConfigureDialog(ManagedWindow): config = self.__config if not callback: callback = self.update_spinner - lwidget = BasicLabel("%s: " % label) + lwidget = BasicLabel(_("%s: ") % label) # needed for French, else ignore adj = Gtk.Adjustment(value=config.get(constant), lower=range[0], upper=range[1], step_increment=1, page_increment=0, page_size=0) @@ -978,7 +978,7 @@ class GrampsPreferences(ConfigureDialog): self.fmt_obox.set_active(active) self.fmt_obox.connect('changed', self.cb_name_changed) # label for the combo - lwidget = BasicLabel("%s: " % _('Name format')) + lwidget = BasicLabel(_("%s: ") % _('Name format')) lwidget.set_use_underline(True) lwidget.set_mnemonic_widget(self.fmt_obox) hbox = Gtk.Box() @@ -1006,7 +1006,7 @@ class GrampsPreferences(ConfigureDialog): active = 0 obox.set_active(active) obox.connect('changed', self.date_format_changed) - lwidget = BasicLabel("%s: " % _('Date format')) + lwidget = BasicLabel(_("%s: ") % _('Date format')) grid.attach(lwidget, 0, row, 1, 1) grid.attach(obox, 1, row, 2, 1) row += 1 @@ -1027,7 +1027,7 @@ class GrampsPreferences(ConfigureDialog): obox.connect('changed', lambda obj: config.set('preferences.age-display-precision', obj.get_active() + 1)) - lwidget = BasicLabel("%s: " + lwidget = BasicLabel(_("%s: ") % _('Age display precision (requires restart)')) grid.attach(lwidget, 0, row, 1, 1) grid.attach(obox, 1, row, 2, 1) @@ -1041,7 +1041,7 @@ class GrampsPreferences(ConfigureDialog): active = 0 obox.set_active(active) obox.connect('changed', self.date_calendar_changed) - lwidget = BasicLabel("%s: " % _('Calendar on reports')) + lwidget = BasicLabel(_("%s: ") % _('Calendar on reports')) grid.attach(lwidget, 0, row, 1, 1) grid.attach(obox, 1, row, 2, 1) row += 1 @@ -1054,7 +1054,7 @@ class GrampsPreferences(ConfigureDialog): obox.connect('changed', lambda obj: config.set('behavior.surname-guessing', obj.get_active())) - lwidget = BasicLabel("%s: " % _('Surname guessing')) + lwidget = BasicLabel(_("%s: ") % _('Surname guessing')) grid.attach(lwidget, 0, row, 1, 1) grid.attach(obox, 1, row, 2, 1) row += 1 @@ -1067,7 +1067,7 @@ class GrampsPreferences(ConfigureDialog): obox.connect('changed', lambda obj: config.set('preferences.family-relation-type', obj.get_active())) - lwidget = BasicLabel("%s: " % _('Default family relationship')) + lwidget = BasicLabel(_("%s: ") % _('Default family relationship')) grid.attach(lwidget, 0, row, 1, 1) grid.attach(obox, 1, row, 2, 1) row += 1 @@ -1091,7 +1091,7 @@ class GrampsPreferences(ConfigureDialog): obox.set_active(1) obox.connect('changed', lambda obj: config.set('interface.statusbar', 2*obj.get_active())) - lwidget = BasicLabel("%s: " % _('Status bar')) + lwidget = BasicLabel(_("%s: ") % _('Status bar')) grid.attach(lwidget, 0, row, 1, 1) grid.attach(obox, 1, row, 2, 1) row += 1 @@ -1148,7 +1148,7 @@ class GrampsPreferences(ConfigureDialog): active = config.get('preferences.place-restrict') obox.set_active(active) obox.connect('changed', self.place_restrict_changed) - lwidget = BasicLabel("%s: " % _('Restrict')) + lwidget = BasicLabel(_("%s: ") % _('Restrict')) grid2.attach(lwidget, 0, row, 1, 1) grid2.attach(obox, 1, row, 2, 1) self.place_widgets.append(obox) @@ -1372,7 +1372,7 @@ class GrampsPreferences(ConfigureDialog): active = config.get('behavior.check-for-updates') obox.set_active(active) obox.connect('changed', self.check_for_updates_changed) - lwidget = BasicLabel("%s: " % _('Check for updates')) + lwidget = BasicLabel(_("%s: ") % _('Check for updates')) grid.attach(lwidget, 1, current_line, 1, 1) grid.attach(obox, 2, current_line, 1, 1) @@ -1390,7 +1390,7 @@ class GrampsPreferences(ConfigureDialog): elif "update" in whattype: self.whattype_box.set_active(0) self.whattype_box.connect('changed', self.check_for_type_changed) - lwidget = BasicLabel("%s: " % _('What to check')) + lwidget = BasicLabel(_("%s: ") % _('What to check')) grid.attach(lwidget, 1, current_line, 1, 1) grid.attach(self.whattype_box, 2, current_line, 1, 1) @@ -1451,7 +1451,7 @@ class GrampsPreferences(ConfigureDialog): current_line = 0 if __debug__: - lwidget = BasicLabel("%s: " % _('Database backend')) + lwidget = BasicLabel(_("%s: ") % _('Database backend')) grid.attach(lwidget, 1, current_line, 1, 1) obox = self.__create_backend_combo() grid.attach(obox, 2, current_line, 1, 1) @@ -1495,7 +1495,7 @@ class GrampsPreferences(ConfigureDialog): active = config.get('database.autobackup') obox.set_active(active) obox.connect('changed', self.autobackup_changed) - lwidget = BasicLabel("%s: " % _('Autobackup')) + lwidget = BasicLabel(_("%s: ") % _('Autobackup')) grid.attach(lwidget, 1, current_line, 1, 1) grid.attach(obox, 2, current_line, 1, 1) diff --git a/gramps/gui/editors/editattribute.py b/gramps/gui/editors/editattribute.py index 2722c7473..e51d66de5 100644 --- a/gramps/gui/editors/editattribute.py +++ b/gramps/gui/editors/editattribute.py @@ -132,7 +132,7 @@ class EditAttributeRoot(EditSecondary): label = str(attrib.get_type()) if not label.strip(): label = _("New Attribute") - label = "%s: %s" % (_('Attribute'),label) + label = _("%s: %s") % (_('Attribute'), label) return (label, _('Attribute Editor')) def save(self,*obj): diff --git a/gramps/gui/editors/editfamily.py b/gramps/gui/editors/editfamily.py index 0c5387b71..a4d3171d8 100644 --- a/gramps/gui/editors/editfamily.py +++ b/gramps/gui/editors/editfamily.py @@ -941,13 +941,15 @@ class EditFamily(EditPrimary): if birth: #if event changes it view needs to update self.callman.register_handles({'event': [birth.get_handle()]}) - birth_label.set_label("%s:" % birth.get_type()) + # translators: needed for French, ignore otherwise + birth_label.set_label(_("%s:") % birth.get_type()) death = get_death_or_fallback(db, person) if death: #if event changes it view needs to update self.callman.register_handles({'event': [death.get_handle()]}) - death_label.set_label("%s:" % death.get_type()) + # translators: needed for French, ignore otherwise + death_label.set_label(_("%s:") % death.get_type()) btn_edit.set_tooltip_text(_('Edit %s') % name) btn_index.hide() diff --git a/gramps/gui/merge/mergeperson.py b/gramps/gui/merge/mergeperson.py index 9aa300efb..5e5ff9bbc 100644 --- a/gramps/gui/merge/mergeperson.py +++ b/gramps/gui/merge/mergeperson.py @@ -176,17 +176,17 @@ class MergePerson(ManagedWindow): title.set_property('weight', Pango.Weight.BOLD) title.set_property('scale', 1.2) self.add(tobj, title, name_displayer.display(person)) - self.add(tobj, normal, "%s:\t%s" % (_('ID'), + self.add(tobj, normal, _("%s:\t%s") % (_('ID'), person.get_gramps_id())) - self.add(tobj, normal, "%s:\t%s" % (_('Gender'), + self.add(tobj, normal, _("%s:\t%s") % (_('Gender'), sex[person.get_gender()])) bref = person.get_birth_ref() if bref: - self.add(tobj, normal, "%s:\t%s" % (_('Birth'), + self.add(tobj, normal, _("%s:\t%s") % (_('Birth'), self.get_event_info(bref.ref))) dref = person.get_death_ref() if dref: - self.add(tobj, normal, "%s:\t%s" % (_('Death'), + self.add(tobj, normal, _("%s:\t%s") % (_('Death'), self.get_event_info(dref.ref))) nlist = person.get_alternate_names() @@ -205,7 +205,8 @@ class MergePerson(ManagedWindow): name = str( self.database.get_event_from_handle(event_handle).get_type()) if role.is_primary(): - self.add(tobj, normal, "%s:\t%s" % + # translators: needed for French, ignore otherwise + self.add(tobj, normal, _("%s:\t%s") % (name, self.get_event_info(event_handle))) else: self.add(tobj, normal, "%s (%s):\t%s" % @@ -216,11 +217,11 @@ class MergePerson(ManagedWindow): self.add(tobj, title, _("Parents")) for fid in person.get_parent_family_handle_list(): (fname, mname, gid) = self.get_parent_info(fid) - self.add(tobj, normal, "%s:\t%s" % (_('Family ID'), gid)) + self.add(tobj, normal, _("%s:\t%s") % (_('Family ID'), gid)) if fname: - self.add(tobj, indent, "%s:\t%s" % (_('Father'), fname)) + self.add(tobj, indent, _("%s:\t%s") % (_('Father'), fname)) if mname: - self.add(tobj, indent, "%s:\t%s" % (_('Mother'), mname)) + self.add(tobj, indent, _("%s:\t%s") % (_('Mother'), mname)) else: self.add(tobj, normal, _("No parents found")) @@ -230,22 +231,22 @@ class MergePerson(ManagedWindow): for fid in slist: (fname, mname, pid) = self.get_parent_info(fid) family = self.database.get_family_from_handle(fid) - self.add(tobj, normal, "%s:\t%s" % (_('Family ID'), pid)) + self.add(tobj, normal, _("%s:\t%s") % (_('Family ID'), pid)) spouse_id = utils.find_spouse(person, family) if spouse_id: spouse = self.database.get_person_from_handle(spouse_id) - self.add(tobj, indent, "%s:\t%s" % (_('Spouse'), + self.add(tobj, indent, _("%s:\t%s") % (_('Spouse'), name_of(spouse))) relstr = str(family.get_relationship()) - self.add(tobj, indent, "%s:\t%s" % (_('Type'), relstr)) + self.add(tobj, indent, _("%s:\t%s") % (_('Type'), relstr)) event = utils.find_marriage(self.database, family) if event: - self.add(tobj, indent, "%s:\t%s" % ( + self.add(tobj, indent, _("%s:\t%s") % ( _('Marriage'), self.get_event_info(event.get_handle()))) for child_ref in family.get_child_ref_list(): child = self.database.get_person_from_handle(child_ref.ref) - self.add(tobj, indent, "%s:\t%s" % (_('Child'), + self.add(tobj, indent, _("%s:\t%s") % (_('Child'), name_of(child))) else: self.add(tobj, normal, _("No spouses or children found")) diff --git a/gramps/gui/plug/_windows.py b/gramps/gui/plug/_windows.py index ed6bba62a..5f1098a64 100644 --- a/gramps/gui/plug/_windows.py +++ b/gramps/gui/plug/_windows.py @@ -674,7 +674,7 @@ class PluginTrace(ManagedWindow): def __init__(self, uistate, track, data, name): self.name = name - title = "%s: %s" % (_("Plugin Error"), name) + title = _("%s: %s") % (_("Plugin Error"), name) ManagedWindow.__init__(self, uistate, track, self) self.set_window(Gtk.Dialog("", uistate.window, diff --git a/gramps/gui/plug/report/_reportdialog.py b/gramps/gui/plug/report/_reportdialog.py index a29d0382b..81457d97e 100644 --- a/gramps/gui/plug/report/_reportdialog.py +++ b/gramps/gui/plug/report/_reportdialog.py @@ -320,7 +320,7 @@ class ReportDialog(ManagedWindow): return # Styles Frame - label = Gtk.Label(label="%s:" % _("Style")) + label = Gtk.Label(label=_("%s:") % _("Style")) label.set_halign(Gtk.Align.START) self.style_menu = StyleComboBox() @@ -372,7 +372,8 @@ class ReportDialog(ManagedWindow): for (text, widget) in self.widgets: widget.set_hexpand(True) if text: - text_widget = Gtk.Label(label="%s:" % text) + # translators: needed for French, ignore otherwise + text_widget = Gtk.Label(label=_("%s:") % text) text_widget.set_halign(Gtk.Align.START) grid.attach(text_widget, 1, row, 1, 1) grid.attach(widget, 2, row, 1, 1) @@ -396,7 +397,7 @@ class ReportDialog(ManagedWindow): for (text, widget) in flist: widget.set_hexpand(True) if text: - text_widget = Gtk.Label(label='%s:' % text) + text_widget = Gtk.Label(label=_('%s:') % text) text_widget.set_halign(Gtk.Align.START) grid.attach(text_widget, 1, row, 1, 1) if isinstance(widget, GuiTextOption): @@ -467,7 +468,7 @@ class ReportDialog(ManagedWindow): directory should be used.""" # Save Frame - self.doc_label = Gtk.Label(label="%s:" % _("Filename")) + self.doc_label = Gtk.Label(label=_("%s:") % _("Filename")) self.doc_label.set_halign(Gtk.Align.START) self.grid.attach(self.doc_label, 1, self.row, 1, 1) @@ -615,7 +616,7 @@ class ReportDialog(ManagedWindow): widget, has_label = make_gui_option(option, self.dbstate, self.uistate, self.track) if has_label: - widget_text = Gtk.Label('%s:' % option.get_label()) + widget_text = Gtk.Label(_('%s:') % option.get_label()) widget_text.set_halign(Gtk.Align.START) self.grid.attach(widget_text, 1, self.row, 1, 1) self.doc_widgets.append(widget_text) diff --git a/gramps/gui/views/navigationview.py b/gramps/gui/views/navigationview.py index 35dcaf7d2..de036a476 100644 --- a/gramps/gui/views/navigationview.py +++ b/gramps/gui/views/navigationview.py @@ -354,7 +354,7 @@ class NavigationView(PageView): dialog.vbox.set_spacing(10) dialog.vbox.set_border_width(12) hbox = Gtk.Box() - hbox.pack_start(Gtk.Label(label="%s: " % _('ID')), True, True, 0) + hbox.pack_start(Gtk.Label(label=_("%s: ") % _('ID')), True, True, 0) text = Gtk.Entry() text.set_activates_default(True) hbox.pack_start(text, False, True, 0) diff --git a/gramps/plugins/gramplet/sessionloggramplet.py b/gramps/plugins/gramplet/sessionloggramplet.py index b41048c34..067705429 100644 --- a/gramps/plugins/gramplet/sessionloggramplet.py +++ b/gramps/plugins/gramplet/sessionloggramplet.py @@ -80,7 +80,8 @@ class LogGramplet(Gramplet): continue self.last_log = (ltype, action, handle) self.timestamp() - self.append_text("%s: " % _(action)) + # translators: needed for French, ignore otherwise + self.append_text(_("%s: ") % _(action)) if action == 'Deleted': transaction = self.dbstate.db.transaction if ltype == 'Person': diff --git a/gramps/plugins/gramplet/statsgramplet.py b/gramps/plugins/gramplet/statsgramplet.py index fce39dc48..f33fbce94 100644 --- a/gramps/plugins/gramplet/statsgramplet.py +++ b/gramps/plugins/gramplet/statsgramplet.py @@ -102,43 +102,43 @@ class StatsGramplet(Gramplet): 'Filter', 'all people') self.append_text(" %s" % database.get_number_of_people()) self.append_text("\n") - self.link("%s:" % _("Males"), 'Filter', 'males') + self.link(_("%s:") % _("Males"), 'Filter', 'males') self.append_text(" %s" % males) self.append_text("\n") - self.link("%s:" % _("Females"), 'Filter', 'females') + self.link(_("%s:") % _("Females"), 'Filter', 'females') self.append_text(" %s" % females) self.append_text("\n") - self.link("%s:" % _("Individuals with unknown gender"), + self.link(_("%s:") % _("Individuals with unknown gender"), 'Filter', 'people with unknown gender') self.append_text(" %s" % unknowns) self.append_text("\n") self.append_text("\n%s\n" % _("Family Information")) self.append_text("----------------------------\n") - self.link("%s:" % _("Number of families"), + self.link(_("%s:") % _("Number of families"), 'Filter', 'all families') self.append_text(" %s" % database.get_number_of_families()) self.append_text("\n") if hasattr(database, 'surname_list'): - self.link("%s:" % _("Unique surnames"), + self.link(_("%s:") % _("Unique surnames"), 'Filter', 'unique surnames') self.append_text(" %s" % len(set(database.surname_list))) self.append_text("\n") self.append_text("\n%s\n" % _("Media Objects")) self.append_text("----------------------------\n") - self.link("%s:" % _("Total number of media object references"), + self.link(_("%s:") % _("Total number of media object references"), 'Filter', 'media references') self.append_text(" %s" % total_media) self.append_text("\n") - self.link("%s:" % _("Number of unique media objects"), + self.link(_("%s:") % _("Number of unique media objects"), 'Filter', 'unique media') self.append_text(" %s" % mobjects) self.append_text("\n") - self.link("%s:" % _("Total size of media objects"), + self.link(_("%s:") % _("Total size of media objects"), 'Filter', 'media by size') self.append_text(" %s %s" % (mbytes, _("Megabyte|MB"))) self.append_text("\n") - self.link("%s:" % _("Missing Media Objects"), + self.link(_("%s:") % _("Missing Media Objects"), 'Filter', 'missing media') self.append_text(" %s\n" % len(notfound)) self.append_text("", scroll_to="begin") diff --git a/gramps/plugins/view/relview.py b/gramps/plugins/view/relview.py index 3353d27a5..9caf7970b 100644 --- a/gramps/plugins/view/relview.py +++ b/gramps/plugins/view/relview.py @@ -535,7 +535,7 @@ class RelationshipView(NavigationView): if family_handle: self.write_parents(family_handle, person) else: - self.write_label("%s:" % _('Parents'), None, True, person) + self.write_label(_("%s:") % _('Parents'), None, True, person) self.row += 1 family_handle_list = person.get_family_handle_list() @@ -599,7 +599,7 @@ class RelationshipView(NavigationView): self._set_draggable_person(eventbox, person.get_handle()) # Gramps ID - subgrid.attach(widgets.BasicLabel("%s:" % _('ID')), 1, 0, 1, 1) + subgrid.attach(widgets.BasicLabel(_("%s:") % _('ID')), 1, 0, 1, 1) label = widgets.BasicLabel(person.gramps_id) label.set_hexpand(True) subgrid.attach(label, 2, 0, 1, 1) @@ -611,7 +611,7 @@ class RelationshipView(NavigationView): else: birth_title = _("Birth") - subgrid.attach(widgets.BasicLabel("%s:" % birth_title), 1, 1, 1, 1) + subgrid.attach(widgets.BasicLabel(_("%s:") % birth_title), 1, 1, 1, 1) subgrid.attach(widgets.BasicLabel(self.format_event(birth)), 2, 1, 1, 1) death = get_death_or_fallback(self.dbstate.db, person) @@ -628,7 +628,7 @@ class RelationshipView(NavigationView): death_date = death.get_date_object() if (death_date and death_date.get_valid()): age = death_date - birth_date - subgrid.attach(widgets.BasicLabel("%s:" % death_title), + subgrid.attach(widgets.BasicLabel(_("%s:") % death_title), 1, 2, 1, 1) subgrid.attach(widgets.BasicLabel("%s (%s)" % (self.format_event(death), age), @@ -638,12 +638,12 @@ class RelationshipView(NavigationView): if not showed_death: age = Today() - birth_date if probably_alive(person, self.dbstate.db): - subgrid.attach(widgets.BasicLabel("%s:" % _("Alive")), + subgrid.attach(widgets.BasicLabel(_("%s:") % _("Alive")), 1, 2, 1, 1) subgrid.attach(widgets.BasicLabel("(%s)" % age, Pango.EllipsizeMode.END), 2, 2, 1, 1) else: - subgrid.attach(widgets.BasicLabel("%s:" % _("Death")), + subgrid.attach(widgets.BasicLabel(_("%s:") % _("Death")), 1, 2, 1, 1) subgrid.attach(widgets.BasicLabel("%s (%s)" % (_("unknown"), age), Pango.EllipsizeMode.END), @@ -651,7 +651,7 @@ class RelationshipView(NavigationView): showed_death = True if not showed_death: - subgrid.attach(widgets.BasicLabel("%s:" % death_title), + subgrid.attach(widgets.BasicLabel(_("%s:") % death_title), 1, 2, 1, 1) subgrid.attach(widgets.BasicLabel(self.format_event(death)), 2, 2, 1, 1) @@ -859,7 +859,7 @@ class RelationshipView(NavigationView): return if person and self.check_collapsed(person.handle, family_handle): # don't show rest - self.write_label("%s:" % _('Parents'), family, True, person) + self.write_label(_("%s:") % _('Parents'), family, True, person) self.row -= 1 # back up one row for summary names active = self.get_active() child_list = [ref.ref for ref in family.get_child_ref_list() @@ -895,7 +895,7 @@ class RelationshipView(NavigationView): _PDATA_STOP-_PDATA_START, 1) self.row += 1 # now advance it else: - self.write_label("%s:" % _('Parents'), family, True, person) + self.write_label(_("%s:") % _('Parents'), family, True, person) self.write_person(_('Father'), family.get_father_handle()) self.write_person(_('Mother'), family.get_mother_handle()) @@ -1375,7 +1375,7 @@ class RelationshipView(NavigationView): # collapse button if self.check_collapsed(person.handle, family_handle): # show "> Family: ..." and nothing else - self.write_label("%s:" % _('Family'), family, False, person) + self.write_label(_("%s:") % _('Family'), family, False, person) self.row -= 1 # back up child_list = family.get_child_ref_list() if child_list: @@ -1399,7 +1399,7 @@ class RelationshipView(NavigationView): self.row += 1 # now advance it else: # show "V Family: ..." and the rest - self.write_label("%s:" % _('Family'), family, False, person) + self.write_label(_("%s:") % _('Family'), family, False, person) if (handle or family.get_relationship() != FamilyRelType.UNKNOWN): box = self.write_person(_('Spouse'), handle)