From 3a11ffa13aa2d03e56c8268757033cbc3c83b668 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 20 Jan 2004 20:03:50 +0000 Subject: [PATCH] * src/EditPlace.py (display_references): Translate event names. svn: r2674 --- gramps2/ChangeLog | 1 + gramps2/src/EditPlace.py | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 9c98440d6..b3ae7facb 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -6,6 +6,7 @@ build_parents_nosel_menu, build_sp_parents_nosel_menu, build_child_menu, build_spouse_menu, build_parents_menu, build_sp_parents_menu): Ditch stock Home item. + * src/EditPlace.py (display_references): Translate event names. 2004-01-19 Don Allingham * src/plugins/FilterEditor.py: handle unicode characters diff --git a/gramps2/src/EditPlace.py b/gramps2/src/EditPlace.py index 755a5f868..1a59c3320 100644 --- a/gramps2/src/EditPlace.py +++ b/gramps2/src/EditPlace.py @@ -1,7 +1,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2000-2003 Donald N. Allingham +# Copyright (C) 2000-2004 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -442,7 +442,7 @@ class EditPlace: t = _("%s [%s]: event %s\n") for e in pevent: - msg = msg + ( t % (GrampsCfg.nameof(e[0]),e[0].getId(),e[1].getName())) + msg = msg + ( t % (GrampsCfg.nameof(e[0]),e[0].getId(),_(e[1].getName()))) if len(fevent) > 0: any = 1 @@ -454,13 +454,15 @@ class EditPlace: father = e[0].getFather() mother = e[0].getMother() if father and mother: - fname = "%s and %s" % (GrampsCfg.nameof(father),GrampsCfg.nameof(mother)) + fname = _("%(father)s and %(mother)s") % { + "father" : GrampsCfg.nameof(father), + "mother" : GrampsCfg.nameof(mother) } elif father: fname = "%s" % GrampsCfg.nameof(father) else: fname = "%s" % GrampsCfg.nameof(mother) - msg = msg + ( t % (fname,e[0].getId(),e[1].getName())) + msg = msg + ( t % (fname,e[0].getId(),_(e[1].getName()))) self.refinfo.get_buffer().set_text(msg) if any: