aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-04-07 01:34:38 +0800
committerMilan Crha <mcrha@redhat.com>2010-04-07 01:34:38 +0800
commit915beda60280ee6cf70cd07a416421b89428ac3c (patch)
treee9ff6992f2adc620244fb293bed8ed3fc1e5fb20
parent4c47304e3d9113bbad034ea78428372fb586a408 (diff)
downloadgsoc2013-evolution-915beda60280ee6cf70cd07a416421b89428ac3c.tar.gz
gsoc2013-evolution-915beda60280ee6cf70cd07a416421b89428ac3c.tar.zst
gsoc2013-evolution-915beda60280ee6cf70cd07a416421b89428ac3c.zip
Bug #591939 - Use ngettext in e-datetime-format.c
-rw-r--r--e-util/e-datetime-format.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/e-util/e-datetime-format.c b/e-util/e-datetime-format.c
index 0595d58add..37226d471a 100644
--- a/e-util/e-datetime-format.c
+++ b/e-util/e-datetime-format.c
@@ -206,10 +206,13 @@ format_relative_date (time_t tvalue, time_t ttoday, const struct tm *value, cons
else
res = g_strdup (_("Yesterday"));
} else {
- if (future)
- res = g_strdup_printf (_("%d days from now"), diff);
- else
- res = g_strdup_printf (_("%d days ago"), diff);
+ 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);
+ } 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);
+ }
}
}