From 4989c9e5d4ab4001308b0ed269abcb115ef7e0a1 Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Wed, 24 Feb 2010 23:04:32 +0000 Subject: [PATCH] Adding named variables to format strings for errors in 'make distcheck' to work. svn: r14464 --- src/plugins/tool/CalculateEstimatedDates.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/tool/CalculateEstimatedDates.py b/src/plugins/tool/CalculateEstimatedDates.py index f50c632ec..b9989cea1 100644 --- a/src/plugins/tool/CalculateEstimatedDates.py +++ b/src/plugins/tool/CalculateEstimatedDates.py @@ -443,7 +443,8 @@ class CalcToolManagedWindow(PluginWindows.ToolManagedWindowBatch): if not birth_ref and add_birth_event: other_name = self.sdb.name(other) if other_name: - explanation = _("Added birth event based on %s, from %s") % (evidence, other_name) + explanation = _("Added birth event based on %(evidence)s, from %(name)s") % { + 'evidence' : evidence, 'name ' : other_name } else: explanation = _("Added birth event based on %s") % evidence modifier = self.get_modifier("birth") @@ -458,7 +459,8 @@ class CalcToolManagedWindow(PluginWindows.ToolManagedWindowBatch): if not death_ref and add_death_event: other_name = self.sdb.name(other) if other_name: - explanation = _("Added death event based on %s, from %s") % (evidence, other_name) + explanation = _("Added death event based on %(evidence)s, from %(person)s") % { + 'evidence' : evidence, 'person' : other_name } else: explanation = _("Added death event based on %s") % evidence modifier = self.get_modifier("death")