From 0a672ffa44c71244a542c81b3d589047af4a8c08 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Mon, 20 Aug 2001 07:32:12 +0000 Subject: added comments to help translators a bit. 2001-08-20 Damon Chaplin * e-time-utils.c (e_time_parse_date): added comments to help translators a bit. svn path=/trunk/; revision=12260 --- e-util/ChangeLog | 5 +++++ e-util/e-time-utils.c | 10 ++++++++++ 2 files changed, 15 insertions(+) (limited to 'e-util') diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 26109f20aa..b4ddbccce0 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,8 @@ +2001-08-20 Damon Chaplin + + * e-time-utils.c (e_time_parse_date): added comments to help + translators a bit. + 2001-08-09 Rodrigo Moya * e-categories-config.c (e_categories_config_get_icon_for): return diff --git a/e-util/e-time-utils.c b/e-util/e-time-utils.c index 716490abf2..bb051986da 100644 --- a/e-util/e-time-utils.c +++ b/e-util/e-time-utils.c @@ -236,9 +236,19 @@ e_time_parse_date (const char *value, struct tm *result) g_return_val_if_fail (value != NULL, E_TIME_PARSE_INVALID); g_return_val_if_fail (result != NULL, E_TIME_PARSE_INVALID); + /* This is the preferred date format for the locale. */ format[0] = _("%m/%d/%Y"); + + /* This is the second-choice date format for the locale, which we use + if previous attempts to parse the date string failed. */ format[1] = _("%d/%m/%Y"); + + /* This is the third-choice date format for the locale, which we use + if previous attempts to parse the date string failed. */ format[2] = _("%Y/%m/%d"); + + /* This is the final-choice date format for the locale, which we use + if previous attempts to parse the date string failed. */ format[3] = _("%x"); /* catch-all give-up strptime()-sucks format */ return parse_with_strptime (value, result, format, sizeof (format) / sizeof (format[0])); -- cgit