GNOME Bugzilla – Bug 659141
Bad gettext syntax for duration string translation
Last modified: 2011-09-15 13:17:15 UTC
gettext cannot handle embedded macros, hence this (in libempathy-gtk/empathy-log-window.c): g_strdup_printf (_("%" G_GINT64_FORMAT " seconds"), span); is wrong. You have to convert first the integer to string with G_GINT64_FORMAT, and then include the result in "%s seconds" string, with a ngettext call. Same for the "minutes" string.
In the same file: text = g_date_time_format (dt, C_("A date such as '23 May 2010', " "%e is the day, %B the month and %Y the year", "%e %B %Y")); should be: text = g_date_time_format (dt, /* Translators: A date such as '23 May 2010' (strftime format) */ "%e %B %Y"));
Sorry, the last example was wrong: text = g_date_time_format (dt, /* Translators: A date such as '23 May 2010' (strftime format) */ _("%e %B %Y"));
Created attachment 196623 [details] [review] log-window: properly translate duration strings
Review of attachment 196623 [details] [review]: This looks fine, thanks!
Created attachment 196624 [details] [review] log-window: fix translators comment
Review of attachment 196624 [details] [review]: Fine, too.
You can commit, and I'll explain the change to gnome-i18n.
Attachment 196623 [details] pushed as 63ad9eb - log-window: properly translate duration strings Attachment 196624 [details] pushed as e3327f1 - log-window: fix translators comment