|
|
|
|
@ -321,14 +321,16 @@ impl ItemRow {
|
|
|
|
|
|
|
|
|
|
let fmt = if date.year() == glib::DateTime::now_local().unwrap().year() { |
|
|
|
|
// Translators: This is a date format in the day divider without the
|
|
|
|
|
// year. For ex. "Friday, May 5". See the documentation of
|
|
|
|
|
// g_date_time_format for the available specifiers: <https://docs.gtk.org/glib/method.DateTime.format.html>
|
|
|
|
|
gettext("%A, %B %e") |
|
|
|
|
// year. For example, "Friday, May 5".
|
|
|
|
|
// Please use `-` before specifiers that add spaces on single digits.
|
|
|
|
|
// See `man strftime` or the documentation of g_date_time_format for the available specifiers: <https://docs.gtk.org/glib/method.DateTime.format.html>
|
|
|
|
|
gettext("%A, %B %-e") |
|
|
|
|
} else { |
|
|
|
|
// Translators: This is a date format in the day divider with the year.
|
|
|
|
|
// For ex. "Friday, May 5, 2023". See the documentation of
|
|
|
|
|
// g_date_time_format for the available specifiers: <https://docs.gtk.org/glib/method.DateTime.format.html>
|
|
|
|
|
gettext("%A, %B %e, %Y") |
|
|
|
|
// For ex. "Friday, May 5, 2023".
|
|
|
|
|
// Please use `-` before specifiers that add spaces on single digits.
|
|
|
|
|
// See `man strftime` or the documentation of g_date_time_format for the available specifiers: <https://docs.gtk.org/glib/method.DateTime.format.html>
|
|
|
|
|
gettext("%A, %B %-e, %Y") |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
child.set_label(&date.format(&fmt).unwrap()) |
|
|
|
|
|