telepathyClient: Add our own translations for timestamps

As an effort to prevent a string freeze to land timestamps on 3.0, we reused
translations for the calendar. Now that the string freeze is long gone, make
some proper strings.

https://bugzilla.gnome.org/show_bug.cgi?id=640271
This commit is contained in:
Jasper St. Pierre 2011-08-01 18:25:59 -04:00
parent aa0a7f7816
commit aa1405e4ea

View File

@ -738,18 +738,18 @@ ChatNotification.prototype = {
If applicable, replace %X with a strftime format valid for your If applicable, replace %X with a strftime format valid for your
locale, without seconds. */ locale, without seconds. */
// xgettext:no-c-format // xgettext:no-c-format
format = _("Sent at %X on %A"); format = _("Sent at <b>%X</b> on <b>%A</b>");
// FIXME: The next two are stolen from calendar.js with the comment to avoid
// a string-freeze break. They should be replaced with better strings
// with 'Sent at', appropriate context and appropriate translator comment.
} else if (date.getYear() == now.getYear()) { } else if (date.getYear() == now.getYear()) {
/* Translators: Shown on calendar heading when selected day occurs on current year */ /* Translators: this is a time format in the style of "Wednesday, May 25",
format = C_("calendar heading", "%A, %B %d"); shown when you get a chat message in the same year. */
// xgettext:no-c-format
format = _("Sent on <b>%A</b>, <b>%B %d</b>");
} else { } else {
/* Translators: Shown on calendar heading when selected day occurs on different year */ /* Translators: this is a time format in the style of "Wednesday, May 25, 2012",
format = C_("calendar heading", "%A, %B %d, %Y"); shown when you get a chat message in a different year. */
// xgettext:no-c-format
format = _("Sent on <b>%A</b>, <b>%B %d</b>, %Y");
} }
return date.toLocaleFormat(format); return date.toLocaleFormat(format);