quick-add-popover: Use semantic typographic wrapping of time ranges
Atomically maintain time ranges on the same line when possible. This is done using invisible non-breaking whitespace characters. When selecting a range of time in the week view's timetable, this ensures eye-pleasing, natural-looking typography. Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1503 Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/661>
This commit is contained in:
committed by
Marge Bot
parent
938195e6e2
commit
e470ecfc25
@@ -421,8 +421,9 @@ update_header (GcalQuickAddPopover *self)
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Translators: %1$s is the event name, %2$s is the start hour, and %3$s is the end hour */
|
||||
title_date = g_strdup_printf (_("%1$s, %2$s – %3$s"),
|
||||
/* Translators: %1$s is the event name, %2$s is the start hour, and %3$s is the end hour.
|
||||
* To avoid spurious line wrapping, use non-breaking space characters around the en dash. */
|
||||
title_date = g_strdup_printf (_("%1$s, %2$s – %3$s"),
|
||||
event_date_name,
|
||||
start_hour,
|
||||
end_hour);
|
||||
|
||||
Reference in New Issue
Block a user