quick-add-popover, event-widget: add translator comments
https://bugzilla.gnome.org/show_bug.cgi?id=784645
This commit is contained in:
@@ -359,6 +359,8 @@ gcal_event_widget_set_event_tooltip (GcalEventWidget *self,
|
|||||||
escaped_location = g_markup_escape_text (gcal_event_get_location (event), -1);
|
escaped_location = g_markup_escape_text (gcal_event_get_location (event), -1);
|
||||||
|
|
||||||
g_string_append (tooltip_mesg, "\n\n");
|
g_string_append (tooltip_mesg, "\n\n");
|
||||||
|
|
||||||
|
/* Translators: %s is the location of the event (e.g. "Downtown, 3rd Avenue") */
|
||||||
g_string_append_printf (tooltip_mesg, _("At %s"), escaped_location);
|
g_string_append_printf (tooltip_mesg, _("At %s"), escaped_location);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -352,6 +352,7 @@ get_date_string_for_multiday (GDateTime *start,
|
|||||||
g_free (day_number_str);
|
g_free (day_number_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Translators: %1$s is the start date (e.g. "from Today") and %2$s is the end date (e.g. "to Tomorrow") */
|
||||||
date_string = g_strdup_printf (_("New Event %1$s %2$s"),
|
date_string = g_strdup_printf (_("New Event %1$s %2$s"),
|
||||||
start_date_str,
|
start_date_str,
|
||||||
end_date_str);
|
end_date_str);
|
||||||
@@ -394,7 +395,7 @@ get_date_string_for_day (GDateTime *day)
|
|||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
event_weekday = event_weekday_names [g_date_time_get_day_of_week (day) - 1];
|
event_weekday = gettext (event_weekday_names [g_date_time_get_day_of_week (day) - 1]);
|
||||||
string_for_date = g_strdup_printf ("%s", event_weekday);
|
string_for_date = g_strdup_printf ("%s", event_weekday);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -416,7 +417,8 @@ get_date_string_for_day (GDateTime *day)
|
|||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
event_month = event_month_names [g_date_time_get_month (day) - 1];
|
event_month = gettext (event_month_names [g_date_time_get_month (day) - 1]);
|
||||||
|
/* Translators: %1$s is the event month (e.g. "New Event on December") and %2$d is the numeric day of month */
|
||||||
string_for_date = g_strdup_printf (_("%1$s %2$d"),
|
string_for_date = g_strdup_printf (_("%1$s %2$d"),
|
||||||
event_month,
|
event_month,
|
||||||
g_date_time_get_day_of_month (day));
|
g_date_time_get_day_of_month (day));
|
||||||
@@ -461,6 +463,7 @@ update_header (GcalQuickAddPopover *self)
|
|||||||
end_hour = g_date_time_format (self->date_end, hour_format);
|
end_hour = g_date_time_format (self->date_end, hour_format);
|
||||||
|
|
||||||
event_date_name = get_date_string_for_day (self->date_start);
|
event_date_name = get_date_string_for_day (self->date_start);
|
||||||
|
/* Translators: %1$s is the event name, %2$s is the start hour, and %3$s is the end hour */
|
||||||
title_date = g_strdup_printf (_("%1$s, %2$s – %3$s"),
|
title_date = g_strdup_printf (_("%1$s, %2$s – %3$s"),
|
||||||
event_date_name,
|
event_date_name,
|
||||||
start_hour,
|
start_hour,
|
||||||
|
|||||||
Reference in New Issue
Block a user