[empathy] Use a localized format when displaying times
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Use a localized format when displaying times
- Date: Fri, 20 Jan 2012 10:43:11 +0000 (UTC)
commit 7d6b4795d7a7b6e8a46e84f76b1004c800ef26ca
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Jan 19 17:06:15 2012 +0100
Use a localized format when displaying times
Unfortunatelly there is no localized format displaying only the hour and
minutes (bug #668323) so we'll have to use %X for now which also display the
seconds.
EMPATHY_DATE_FORMAT_DISPLAY_SHORT was already localized so this one is fine.
That also means we don't have to translate those formats any more as we'll
just rely on the system env.
https://bugzilla.gnome.org/show_bug.cgi?id=608474
libempathy/empathy-time.h | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/libempathy/empathy-time.h b/libempathy/empathy-time.h
index 16f4416..59bd926 100644
--- a/libempathy/empathy-time.h
+++ b/libempathy/empathy-time.h
@@ -29,14 +29,11 @@
G_BEGIN_DECLS
-/*
- * Translators: use your locale preferred time format.
- * The fields follow the strftime standard:
- * look at the manual if you need help (man strftime)
- */
-#define EMPATHY_TIME_FORMAT_DISPLAY_SHORT _("%H:%M")
-#define EMPATHY_DATE_FORMAT_DISPLAY_SHORT _("%a %d %b %Y")
-#define EMPATHY_TIME_DATE_FORMAT_DISPLAY_SHORT _("%a %d %b %Y, %H:%M")
+/* FIXME: ideally we should only display the hour and minutes but
+ * there is no localized format for that (bgo #668323) */
+#define EMPATHY_TIME_FORMAT_DISPLAY_SHORT "%X"
+#define EMPATHY_DATE_FORMAT_DISPLAY_SHORT "%a %d %b %Y"
+#define EMPATHY_TIME_DATE_FORMAT_DISPLAY_SHORT "%a %d %b %Y, %X"
gint64 empathy_time_get_current (void);
gchar *empathy_time_to_string_utc (gint64 t,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]