Use nice Unicode for date formatting
The ratio character is nicer aligned for this use than the stock colon, and a thin space is all that is needed before am/pm. https://bugzilla.gnome.org/show_bug.cgi?id=689251
This commit is contained in:
parent
151c699f5c
commit
6f8540f25a
@ -62,15 +62,18 @@ function _formatEventTime(event, clockFormat) {
|
|||||||
} else {
|
} else {
|
||||||
switch (clockFormat) {
|
switch (clockFormat) {
|
||||||
case '24h':
|
case '24h':
|
||||||
/* Translators: Shown in calendar event list, if 24h format */
|
/* Translators: Shown in calendar event list, if 24h format,
|
||||||
ret = event.date.toLocaleFormat(C_("event list time", "%H:%M"));
|
\u2236 is a ratio character, similar to : */
|
||||||
|
ret = event.date.toLocaleFormat(C_("event list time", "%H\u2236%M"));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* explicit fall-through */
|
/* explicit fall-through */
|
||||||
case '12h':
|
case '12h':
|
||||||
/* Transators: Shown in calendar event list, if 12h format */
|
/* Transators: Shown in calendar event list, if 12h format,
|
||||||
ret = event.date.toLocaleFormat(C_("event list time", "%l:%M %p"));
|
\u2236 is a ratio character, similar to : and \u2009 is
|
||||||
|
a thin space */
|
||||||
|
ret = event.date.toLocaleFormat(C_("event list time", "%l\u2236%M\u2009%p"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user