Mark date formats as translatable

Fix #1204
This commit is contained in:
Titouan Real
2025-02-06 16:49:10 +01:00
parent 38dcecab81
commit 0097ab9794
2 changed files with 14 additions and 2 deletions
+7 -1
View File
@@ -438,7 +438,13 @@ gcal_event_widget_update_timestamp (GcalEventWidget *self)
time = g_date_time_to_local (gcal_event_get_date_end (self->event));
if (gcal_event_get_all_day (self->event) || gcal_event_is_multiday (self->event))
timestamp_str = g_date_time_format (time, "%a %B %e");
/*
* Translators: %A is the abbreviated day name, %B is the month name
* and %d is the day of the month as a number between 0 and 31.
* More formats can be found on the doc:
* https://docs.gtk.org/glib/method.DateTime.format.html
*/
timestamp_str = g_date_time_format (time, _("%a %B %d"));
else if (gcal_context_get_time_format (self->context) == GCAL_TIME_FORMAT_24H)
timestamp_str = g_date_time_format (time, "%R");
else
+7 -1
View File
@@ -200,7 +200,13 @@ new_date_header_string (GDateTime *date)
else if (gcal_date_time_compare_date (date, yesterday) == 0)
return g_strdup (_("Yesterday"));
else
return g_date_time_format (date, "%A %B %e");
/*
* Translators: %A is the abbreviated day name, %B is the month name
* and %d is the day of the month as a number between 0 and 31.
* More formats can be found on the doc:
* https://docs.gtk.org/glib/method.DateTime.format.html
*/
return g_date_time_format (date, _("%A %B %d"));
}