mirror of
https://gitlab.gnome.org/World/fractal.git
synced 2025-06-03 00:01:51 -04:00
room-history: Replace ratio character with colon in timestamps
Apparently using the ratio character can create issues for RTL languages.
This commit is contained in:
parent
58ebb7e3bc
commit
d65fbacac6
@ -106,13 +106,13 @@ mod imp {
|
||||
// For example, "May 5 at 01:20 PM".
|
||||
// Do not change the time format as it will follow the system settings.
|
||||
// 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("%B %-e at %I∶%M %p")
|
||||
gettext("%B %-e at %I:%M %p")
|
||||
} else {
|
||||
// Translators: this is a date and a time in 24h format.
|
||||
// For example, "May 5 at 13:20".
|
||||
// Do not change the time format as it will follow the system settings.
|
||||
// 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("%B %-e at %H∶%M")
|
||||
gettext("%B %-e at %H:%M")
|
||||
};
|
||||
let label = datetime.format(&format).unwrap();
|
||||
|
||||
|
@ -236,7 +236,7 @@ mod imp {
|
||||
|
||||
let clock_format = Application::default().system_settings().clock_format();
|
||||
let time = if clock_format == ClockFormat::TwelveHours {
|
||||
datetime.format("%I∶%M %p").unwrap()
|
||||
datetime.format("%I:%M %p").unwrap()
|
||||
} else {
|
||||
datetime.format("%R").unwrap()
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user