aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-01-20 00:06:15 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-01-20 18:35:19 +0800
commit7d6b4795d7a7b6e8a46e84f76b1004c800ef26ca (patch)
tree78cf6e620315cac4f6956b56a738b2f102cd1635
parent11de29cc7c7b7d6047837b51155b768b0e8f9a4b (diff)
downloadgsoc2013-empathy-7d6b4795d7a7b6e8a46e84f76b1004c800ef26ca.tar
gsoc2013-empathy-7d6b4795d7a7b6e8a46e84f76b1004c800ef26ca.tar.gz
gsoc2013-empathy-7d6b4795d7a7b6e8a46e84f76b1004c800ef26ca.tar.bz2
gsoc2013-empathy-7d6b4795d7a7b6e8a46e84f76b1004c800ef26ca.tar.lz
gsoc2013-empathy-7d6b4795d7a7b6e8a46e84f76b1004c800ef26ca.tar.xz
gsoc2013-empathy-7d6b4795d7a7b6e8a46e84f76b1004c800ef26ca.tar.zst
gsoc2013-empathy-7d6b4795d7a7b6e8a46e84f76b1004c800ef26ca.zip
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
-rw-r--r--libempathy/empathy-time.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/libempathy/empathy-time.h b/libempathy/empathy-time.h
index 16f441675..59bd9269b 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,