event-editor/schedule-section: Fix localization mix

The gcal_util_translate_time_string function is a plain copy of
gnome-shells shell_util_translate_time_string solving the same problem.

Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/581
This commit is contained in:
Björn Daase
2022-02-12 17:43:49 +01:00
parent 02343e6b37
commit ad7ff65a4d
3 changed files with 39 additions and 2 deletions
+2 -2
View File
@@ -235,7 +235,7 @@ format_datetime_for_display (GDateTime *date,
{
case -7 ... -2:
/* Translators: %A is the weekday name (e.g. Sunday, Monday, etc) */
formatted_date = g_date_time_format (local_dt, _("Last %A"));
formatted_date = g_date_time_format (local_dt, gcal_util_translate_time_string (_("Last %A")));
break;
case -1:
@@ -252,7 +252,7 @@ format_datetime_for_display (GDateTime *date,
case 2 ... 7:
/* Translators: %A is the weekday name (e.g. Sunday, Monday, etc) */
formatted_date = g_date_time_format (local_dt, _("This %A"));
formatted_date = g_date_time_format (local_dt, gcal_util_translate_time_string (_("This %A")));
break;
default: