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-weather.c | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'my-evolution/e-summary-weather.c') diff --git a/my-evolution/e-summary-weather.c b/my-evolution/e-summary-weather.c index ebe6158e95..ed8847f1eb 100644 --- a/my-evolution/e-summary-weather.c +++ b/my-evolution/e-summary-weather.c @@ -41,14 +41,19 @@ e_summary_weather_get_html (ESummary *summary) GList *weathers; GString *string; char *html; + char *s; if (summary->weather == NULL) { return NULL; } string = g_string_new ("
" - "My Weather"); + "alt=\"\" width=\"48\" height=\"48\">" + ""); + s = e_utf8_from_locale_string (_("My Weather")); + g_string_append (string, s); + g_free (s); + g_string_append (string, ""); for (weathers = summary->weather->weathers; weathers; weathers = weathers->next) { if (((Weather *)weathers->data)->html == NULL) { continue; @@ -77,7 +82,7 @@ weather_make_html (Weather *w) { GString *string; ESummaryWeatherLocation *location; - char *sky, *temp, *cond, *uri, *url; + char *sky, *temp, *cond, *uri, *url, *s; string = g_string_new ("
 "); @@ -96,11 +101,17 @@ weather_make_html (Weather *w) temp = weather_temp_string (w); cond = (char *) weather_conditions_string (w); - g_string_append (string, e_utf8_from_locale_string (sky)); - g_string_append (string, " "); - g_string_append (string, e_utf8_from_locale_string (cond)); - g_string_append (string, " "); - g_string_append (string, e_utf8_from_locale_string (temp)); + s = e_utf8_from_locale_string (sky); + g_string_append (string, s); + g_free (s); + g_string_append_c (string, ' '); + s = e_utf8_from_locale_string (cond); + g_string_append (string, s); + g_free (s); + g_string_append_c (string, ' '); + s = e_utf8_from_locale_string (temp); + g_string_append (string, s); + g_free (s); g_free (temp); g_string_append (string, ""); @@ -274,7 +285,7 @@ open_callback (GnomeVFSAsyncHandle *handle, Weather *w) { if (result != GNOME_VFS_OK) { - w->html = g_strdup ("Error downloading Metar"); + w->html = e_utf8_from_locale_string (_("Error downloading Metar")); e_summary_draw (w->summary); return; -- cgit v1.2.3