[evolution] Bug #592045 - Use week-day names in abbreviated date



commit d88cc5c4db88e39fb999e89bdb782e32b430ae5e
Author: Milan Crha <mcrha redhat com>
Date:   Wed Oct 27 11:19:51 2010 +0200

    Bug #592045 - Use week-day names in abbreviated date

 e-util/e-datetime-format.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/e-util/e-datetime-format.c b/e-util/e-datetime-format.c
index fa0d0f2..e78b8cf 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");
 			}
 		}
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]