date formats: Use g_date_time_format()
Don't hardcode month-day order, use g_date_time_format() and mark the format string for translation and let translators choose their preferred formats. This patch also removes context from the existing "%B %d" date format because it is unnecessary and this allows the format to be reused by the patch. https://bugzilla.gnome.org/show_bug.cgi?id=780629
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
76574ca63b
commit
2263fc9478
@@ -228,10 +228,10 @@ update_header (GcalQuickAddPopover *self)
|
||||
|
||||
stm_date = icaltimetype_to_tm (dtstart);
|
||||
/* Translators:
|
||||
* this is the format string for representing a date consisting of a month name
|
||||
* and a date of month.
|
||||
* this is the format string for representing a date consisting of a month
|
||||
* name and a day of month.
|
||||
*/
|
||||
e_utf8_strftime_fix_am_pm (start, 64, C_("event date format", "%B %d"), &stm_date);
|
||||
e_utf8_strftime_fix_am_pm (start, 64, _("%B %d"), &stm_date);
|
||||
|
||||
if (self->date_end)
|
||||
{
|
||||
@@ -258,10 +258,10 @@ update_header (GcalQuickAddPopover *self)
|
||||
{
|
||||
etm_date = icaltimetype_to_tm (dtend);
|
||||
/* Translators:
|
||||
* this is the format string for representing a date consisting of a month name
|
||||
* and a date of month.
|
||||
* this is the format string for representing a date consisting of a month
|
||||
* name and a day of month.
|
||||
*/
|
||||
e_utf8_strftime_fix_am_pm (end, 64, C_("event date format", "%B %d"), &etm_date);
|
||||
e_utf8_strftime_fix_am_pm (end, 64, _("%B %d"), &etm_date);
|
||||
|
||||
title_date = g_strdup_printf (_("New Event from %s to %s"), start, end);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user