diff options
author | Chyla Zbigniew <chyla@src.gnome.org> | 2001-06-30 20:08:27 +0800 |
---|---|---|
committer | Chyla Zbigniew <chyla@src.gnome.org> | 2001-06-30 20:08:27 +0800 |
commit | b190305858a16818773cdf855a6d78eda2ee6bda (patch) | |
tree | cab77ea68283362e6a92a5c6a298c6c2a7224d47 /my-evolution/e-summary-weather.c | |
parent | 50c60bc7ff8343894e7234cfa09b26edf5fe3397 (diff) | |
download | gsoc2013-evolution-b190305858a16818773cdf855a6d78eda2ee6bda.tar.gz gsoc2013-evolution-b190305858a16818773cdf855a6d78eda2ee6bda.tar.zst gsoc2013-evolution-b190305858a16818773cdf855a6d78eda2ee6bda.zip |
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 <config.h>
(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
Diffstat (limited to 'my-evolution/e-summary-weather.c')
-rw-r--r-- | my-evolution/e-summary-weather.c | 29 |
1 files changed, 20 insertions, 9 deletions
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 ("<dl><img src=\"ico-weather.png\" align=\"middle\" " - "alt=\"\" width=\"48\" height=\"48\"><b>" - "<a href=\"http://www.metoffice.gov.uk\">My Weather</a></b>"); + "alt=\"\" width=\"48\" height=\"48\"><b>" + "<a href=\"http://www.metoffice.gov.uk\">"); + s = e_utf8_from_locale_string (_("My Weather")); + g_string_append (string, s); + g_free (s); + g_string_append (string, "</a></b>"); 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 ("<dd><img align=\"middle\" " "src=\"es-weather.png\"> <b>"); @@ -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, "<font size=\"-1\">"); @@ -274,7 +285,7 @@ open_callback (GnomeVFSAsyncHandle *handle, Weather *w) { if (result != GNOME_VFS_OK) { - w->html = g_strdup ("<b>Error downloading Metar</b>"); + w->html = e_utf8_from_locale_string (_("<b>Error downloading Metar</b>")); e_summary_draw (w->summary); return; |