From d88cc5c4db88e39fb999e89bdb782e32b430ae5e Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 27 Oct 2010 11:19:51 +0200 Subject: Bug #592045 - Use week-day names in abbreviated date --- e-util/e-datetime-format.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/e-util/e-datetime-format.c b/e-util/e-datetime-format.c index fa0d0f23f6..e78b8cfe5e 100644 --- a/e-util/e-datetime-format.c +++ b/e-util/e-datetime-format.c @@ -204,7 +204,7 @@ format_relative_date (time_t tvalue, time_t ttoday, const struct tm *value, cons future = TRUE; diff = ABS (diff); - + if (diff <= 1) { if (future) res = g_strdup (_("Tomorrow")); @@ -212,11 +212,10 @@ format_relative_date (time_t tvalue, time_t ttoday, const struct tm *value, cons res = g_strdup (_("Yesterday")); } else { if (future) { - /* Translators: %d is replaced with a number of days. It's always greater than 1 */ - res = g_strdup_printf (ngettext ("%d day from now", "%d days from now", diff), diff); + /* Translators: %a is a strftime modifier, the abbreviated week day name, for example "Next Tue" */ + res = g_strdup (_("Next %a")); } else { - /* Translators: %d is replaced with a number of days. It's always greater than 1 */ - res = g_strdup_printf (ngettext ("%d day ago", "%d days ago", diff), diff); + res = g_strdup ("%a"); } } } -- cgit v1.2.3