Distinguish translator comments for date formats

Don't say 'This is a time format' for both time formats, but
label them as 24-hour and AM/PM.
This commit is contained in:
Owen W. Taylor 2010-02-11 14:53:14 -05:00
parent c89ee2f8f2
commit 38b7904f92

View File

@ -556,10 +556,10 @@ Panel.prototype = {
/* If there is no am or pm, time format is 24h */
let isTime24h = displayDate.toLocaleFormat("x%p") == "x";
if (isTime24h) {
/* Translators: This is a time format. */
/* Translators: This is the time format used in 24-hour mode. */
this._clock.set_text(displayDate.toLocaleFormat(_("%a %R")));
} else {
/* Translators: This is a time format. */
/* Translators: This is a time format used for AM/PM. */
this._clock.set_text(displayDate.toLocaleFormat(_("%a %l:%M %p")));
}
Mainloop.timeout_add(msecRemaining, Lang.bind(this, this._updateClock));