]> git.0d.be Git - empathy.git/commitdiff
Use a localized format when displaying times
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 19 Jan 2012 16:06:15 +0000 (17:06 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 20 Jan 2012 10:35:19 +0000 (11:35 +0100)
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

index 16f441675e7ce7d23a6b712f7706a65e2d9c70ce..59bd9269bd36b37a097896213692cfcf7876f31b 100644 (file)
 
 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,