From c6ed3eedc881b57ac7d767a282413db7966f8a8b Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Thu, 27 Mar 2003 21:37:07 +0000 Subject: Likewise. * e-summary.c (e_summary_init): Likewise. * e-summary-weather.c (e_summary_weather_get_html): Likewise. (weather_make_html): Likewise. * e-summary-mail.c (e_summary_mail_generate_html): Fix so it handles the fact that the translated strings are already in UTF8. * e-summary-rdf.c (tree_walk): Likewise. (display_doc): Likewise. svn path=/trunk/; revision=20553 --- my-evolution/e-summary-weather.c | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 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 a6a2497370..27bb777083 100644 --- a/my-evolution/e-summary-weather.c +++ b/my-evolution/e-summary-weather.c @@ -70,10 +70,9 @@ e_summary_weather_get_html (ESummary *summary) string = g_string_new ("
" ""); - s = e_utf8_from_locale_string (_("My Weather")); - g_string_append (string, s); - g_free (s); + g_string_append (string, _("My Weather")); g_string_append (string, ""); + for (weathers = summary->weather->weathers; weathers; weathers = weathers->next) { if (((Weather *)weathers->data)->html == NULL) { continue; @@ -133,17 +132,12 @@ weather_make_html (Weather *w) temp = weather_temp_string (w); cond = (char *) weather_conditions_string (w); - s = e_utf8_from_locale_string (sky); - g_string_append (string, s); - g_free (s); + g_string_append (string, sky); g_string_append_c (string, ' '); - s = e_utf8_from_locale_string (cond); - g_string_append (string, s); - g_free (s); + g_string_append (string, cond); g_string_append_c (string, ' '); - s = e_utf8_from_locale_string (temp); - g_string_append (string, s); - g_free (s); + g_string_append (string, temp); + g_free (temp); #if 0 @@ -256,7 +250,6 @@ message_finished (SoupMessage *msg, } if (SOUP_MESSAGE_IS_ERROR (msg)) { - char *mess; ESummaryWeatherLocation *location; g_warning ("Message failed: %d\n%s", msg->errorcode, @@ -265,12 +258,9 @@ message_finished (SoupMessage *msg, location = g_hash_table_lookup (locations_hash, w->location); - mess = g_strdup_printf ("
%s %s
", - _("There was an error downloading data for"), - location ? location->name : w->location); - - w->html = e_utf8_from_locale_string (mess); - g_free (mess); + w->html = g_strdup_printf ("
%s %s
", + _("There was an error downloading data for"), + location ? location->name : w->location); e_summary_draw (w->summary); return; -- cgit v1.2.3