aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-datetime-format.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-10-27 17:19:51 +0800
committerMilan Crha <mcrha@redhat.com>2010-10-27 17:19:51 +0800
commitd88cc5c4db88e39fb999e89bdb782e32b430ae5e (patch)
treeb71a5e094e8bc1d3a2e9413f9458ee1ed4c77476 /e-util/e-datetime-format.c
parentd6d0d1050aa72fd757eec127cba605844584dc11 (diff)
downloadgsoc2013-evolution-d88cc5c4db88e39fb999e89bdb782e32b430ae5e.tar.gz
gsoc2013-evolution-d88cc5c4db88e39fb999e89bdb782e32b430ae5e.tar.zst
gsoc2013-evolution-d88cc5c4db88e39fb999e89bdb782e32b430ae5e.zip
Bug #592045 - Use week-day names in abbreviated date
Diffstat (limited to 'e-util/e-datetime-format.c')
-rw-r--r--e-util/e-datetime-format.c9
1 files 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");
}
}
}