From 69b77f46a854d278572f38d7a4a635747fa648a1 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Wed, 19 Jan 2005 05:13:09 +0000 Subject: [PATCH] * src/dates/Date_fr.py: Add formats and quality. * src/dates/Date_es.py: Add formats and quality. svn: r3938 --- ChangeLog | 3 +++ src/dates/Date_es.py | 14 ++++++++++---- src/dates/Date_fr.py | 13 ++++++++++--- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index ec4ce68a7..590cc75b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -43,6 +43,9 @@ * src/plugins/StatisticsChart.py: Use ReportUtils. * src/plugins/TimeLine.py: Use ReportUtils. + * src/dates/Date_fr.py: Add formats and quality. + * src/dates/Date_es.py: Add formats and quality. + 2005-01-17 Don Allingham * src/ReportUtils.py: Added * src/BaseDoc.py: support for graphs diff --git a/src/dates/Date_es.py b/src/dates/Date_es.py index 716c44581..083912571 100644 --- a/src/dates/Date_es.py +++ b/src/dates/Date_es.py @@ -2,7 +2,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2004 Donald N. Allingham +# Copyright (C) 2004-2005 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 @@ -118,11 +118,18 @@ class DateDisplayES(DateDisplay): ) _mod_str = ("",u"antes de ",u"después de ",u"hacia ","","","") + + _qual_str = ("","calculado ","estimado ") + + formats = ( + "AAAA-MM-DD (ISO)", "Numérica", "Mes Día, Año", + "MES Día, Año", "Día Mes, Año", "Día MES, Año" + ) def display(self,date): """ - Returns a text string representing the date. - """ + Returns a text string representing the date. + """ mod = date.get_modifier() cal = date.get_calendar() qual = date.get_quality() @@ -153,4 +160,3 @@ class DateDisplayES(DateDisplay): #------------------------------------------------------------------------- from DateHandler import register_datehandler register_datehandler(('es_ES','spanish'),DateParserES, DateDisplayES) - diff --git a/src/dates/Date_fr.py b/src/dates/Date_fr.py index eb7e77ba1..2086c6646 100644 --- a/src/dates/Date_fr.py +++ b/src/dates/Date_fr.py @@ -2,7 +2,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2004 Donald N. Allingham +# Copyright (C) 2004-2005 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 @@ -113,10 +113,17 @@ class DateDisplayFR(DateDisplay): _mod_str = ("",u"avant ",u"après ",u"vers ","","","") + _qual_str = ("","calculated ","estimated ") + + formats = ( + "Y\AAAA-MM-DD (ISO)", "Numérique", "Mois Jour, Année", + "MOI Jour, Année", "Jour Mois, Année", "Jour MOIS Année" + ) + def display(self,date): """ - Returns a text string representing the date. - """ + Returns a text string representing the date. + """ mod = date.get_modifier() cal = date.get_calendar() qual = date.get_quality()