aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-08-20 15:32:12 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-08-20 15:32:12 +0800
commit0a672ffa44c71244a542c81b3d589047af4a8c08 (patch)
treecd87d145887275620009f8ec48d68f4156f67449 /e-util
parentdea477a5a1e566006c9055f6869d2c655e6d0d0b (diff)
downloadgsoc2013-evolution-0a672ffa44c71244a542c81b3d589047af4a8c08.tar.gz
gsoc2013-evolution-0a672ffa44c71244a542c81b3d589047af4a8c08.tar.zst
gsoc2013-evolution-0a672ffa44c71244a542c81b3d589047af4a8c08.zip
added comments to help translators a bit.
2001-08-20 Damon Chaplin <damon@ximian.com> * e-time-utils.c (e_time_parse_date): added comments to help translators a bit. svn path=/trunk/; revision=12260
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog5
-rw-r--r--e-util/e-time-utils.c10
2 files changed, 15 insertions, 0 deletions
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 <damon@ximian.com>
+
+ * e-time-utils.c (e_time_parse_date): added comments to help
+ translators a bit.
+
2001-08-09 Rodrigo Moya <rodrigo@ximian.com>
* 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]));
;id=0c67d4afb96dd8f5a3027a115c8a2ee5e3241ca9'>Remove more tags from pkg-descr files fo the form:dougb2011-10-241-3/+0 * Fix IPv6 support.ale2011-09-052-1/+21 * - Get Rid MD5 supportmiwi2011-03-201-1/+0 * Bump PORTREVISION for ports linking to default libmysqlclient.ale2011-03-191-1/+1 * Bounce PORTREVISION for gettext-related ports. Have fun, ya'll.ade2010-05-311-1/+1 * Begin the process of deprecating sysutils/rc_subr bydougb2010-03-271-1/+1 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1 * Fix recursive resolver.ale2007-04-302-1/+13 * Fix rcNG startup ordering and bump PORTREVISION.ale2006-03-082-2/+2 * Conversion to a single libtool environment.ade2006-02-231-1/+0 * Update to 1.1.0 release.ale2006-02-095-32/+7 * SHA256ifyedwin2006-01-221-0/+1 * Remove install-info from Makefile, it's automatically done when INFO is definededwin2005-12-051-1/+0 * Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-1/+1 * Make LOCALBASE clean.ale2005-10-171-3/+9 * - Update to 1.0.0 release [1]ale2005-03-09