date = katze_item_get_added (item);
if (date)
{
- SoupDate* sdate;
+ time_t date_t;
+ const struct tm* tm;
+ static gchar date_format[512];
const gchar* puri;
KatzeItem* parent;
- sdate = soup_date_new_from_time_t ((time_t) date);
+ gchar* last_updated;
+ date_t = (time_t)date;
+ tm = localtime (&date_t);
+ /* Some gcc versions complain about "%c" for no reason */
+ strftime (date_format, sizeof (date_format), "%c", tm);
parent = katze_item_get_parent (item);
g_assert (KATZE_IS_ARRAY (parent));
puri = katze_item_get_uri (parent);
+ /* i18n: The local date a feed was last updated */
+ last_updated = g_strdup_printf (C_("Feed", "Last updated: %s."),
+ date_format);
text = g_strdup_printf (
"<html><head><title>feed</title></head>"
- "<body><h3>%s</h3><p />Last updated %s.</body></html>",
- puri, soup_date_to_string (sdate, SOUP_DATE_HTTP));
- soup_date_free (sdate);
+ "<body><h3>%s</h3><p />%s</body></html>",
+ puri, last_updated);
+ g_free (last_updated);
}
}
webkit_web_view_load_html_string (
NULL, 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
_("Error"));
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
- _("Feed %s already exists"), uri);
+ _("Feed '%s' already exists"), uri);
gtk_window_set_title (GTK_WINDOW (dialog), EXTENSION_NAME);
gtk_widget_show (dialog);
g_signal_connect_swapped (dialog, "response",
{
gchar* msg;
- msg = g_strdup_printf (_("Error loading feed %s"),
+ msg = g_strdup_printf (_("Error loading feed '%s'"),
katze_item_get_uri (KATZE_ITEM (netpriv->feed)));
feed_handle_net_error (netpriv, msg);
g_free (msg);