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:
parent
c89ee2f8f2
commit
38b7904f92
@ -556,10 +556,10 @@ Panel.prototype = {
|
|||||||
/* If there is no am or pm, time format is 24h */
|
/* If there is no am or pm, time format is 24h */
|
||||||
let isTime24h = displayDate.toLocaleFormat("x%p") == "x";
|
let isTime24h = displayDate.toLocaleFormat("x%p") == "x";
|
||||||
if (isTime24h) {
|
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")));
|
this._clock.set_text(displayDate.toLocaleFormat(_("%a %R")));
|
||||||
} else {
|
} 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")));
|
this._clock.set_text(displayDate.toLocaleFormat(_("%a %l:%M %p")));
|
||||||
}
|
}
|
||||||
Mainloop.timeout_add(msecRemaining, Lang.bind(this, this._updateClock));
|
Mainloop.timeout_add(msecRemaining, Lang.bind(this, this._updateClock));
|
||||||
|
Loading…
Reference in New Issue
Block a user