From 9befaa17ff7a16a59764dd6447e97a66bacee8f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sun, 2 Mar 2008 06:12:05 +0000 Subject: [PATCH] 2008-03-02 Jerome Rapinat * src/plugins/AgeOnDate.py : minor change for better translations svn: r10155 --- ChangeLog | 3 +++ src/plugins/AgeOnDate.py | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3f7df1cb9..015dffb32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2008-03-02 Jerome Rapinat + * src/plugins/AgeOnDate.py : minor change for better translations + 2008-03-02 Douglas S. Blank * src/plugins/DefaultGramplets.py (PedigreeGramplet.get_boxes): Fixed a bug in turning off vertical lines; other refinements diff --git a/src/plugins/AgeOnDate.py b/src/plugins/AgeOnDate.py index b1d78e939..833f34ffd 100644 --- a/src/plugins/AgeOnDate.py +++ b/src/plugins/AgeOnDate.py @@ -43,7 +43,11 @@ def run(database, document, date): sdoc.paragraph("Date is not a valid date.") return # display the title - sdoc.title(_("People probably alive and their ages on %s") % + if date.get_day_valid(): + sdoc.title(_("People probably alive and their ages the %s") % + DateHandler.displayer.display(date)) + else: + sdoc.title(_("People probably alive and their ages on %s") % DateHandler.displayer.display(date)) sdoc.paragraph("\n") stab.columns(_("Person"), _("Age")) # Actual Date makes column unicode