From b190305858a16818773cdf855a6d78eda2ee6bda Mon Sep 17 00:00:00 2001 From: Chyla Zbigniew Date: Sat, 30 Jun 2001 12:08:27 +0000 Subject: Marked strings for translation + conversion to utf8. * e-summary-calendar.c (generate_html): Marked strings for translation + conversion to utf8. * e-summary-mail.c Added missing #include (e_summary_mail_generate_html): Marked strings for translation + conversion to utf8. * e-summary-weather.c (e_summary_weather_get_html, open_callback): Marked strings for translation + conversion to utf8. (weather_make_html): Fixed leaks. * e-summary-rdf.c (tree_walk): Fixed leaks. (read_callback): Marked strings for translation. svn path=/trunk/; revision=10630 --- my-evolution/e-summary-rdf.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'my-evolution/e-summary-rdf.c') diff --git a/my-evolution/e-summary-rdf.c b/my-evolution/e-summary-rdf.c index 0980640542..0cd7bb8c33 100644 --- a/my-evolution/e-summary-rdf.c +++ b/my-evolution/e-summary-rdf.c @@ -18,6 +18,8 @@ #include #include +#include +#include #include #include #include "e-summary.h" @@ -235,7 +237,9 @@ tree_walk (xmlNodePtr root, full = g_strdup_printf ("", u); g_string_append (html, full); } - g_string_append (html, e_utf8_from_locale_string (t)); + t = e_utf8_from_locale_string (t); + g_string_append (html, t); + g_free (t); if (*u != '\0') { g_string_append (html, ""); } @@ -284,7 +288,9 @@ tree_walk (xmlNodePtr root, g_free (tmp); } - tmp = g_strdup_printf ("%s\n", e_utf8_from_locale_string (p)); + p = e_utf8_from_locale_string (p); + tmp = g_strdup_printf ("%s\n", p); + g_free (p); g_string_append (html, tmp); g_free (tmp); } @@ -361,7 +367,7 @@ read_callback (GnomeVFSAsyncHandle *handle, RDF *r) { if (result != GNOME_VFS_OK && result != GNOME_VFS_ERROR_EOF) { - r->html = g_strdup ("Error downloading RDF"); + r->html = e_utf8_from_locale_string (_("Error downloading RDF")); e_summary_draw (r->summary); r->handle = NULL; @@ -387,7 +393,7 @@ open_callback (GnomeVFSAsyncHandle *handle, RDF *r) { if (result != GNOME_VFS_OK) { - r->html = g_strdup ("Error downloading RDF"); + r->html = e_utf8_from_locale_string (_("Error downloading RDF")); e_summary_draw (r->summary); return; -- cgit