aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-rdf.c
diff options
context:
space:
mode:
authorChyla Zbigniew <chyla@src.gnome.org>2001-06-30 20:08:27 +0800
committerChyla Zbigniew <chyla@src.gnome.org>2001-06-30 20:08:27 +0800
commitb190305858a16818773cdf855a6d78eda2ee6bda (patch)
treecab77ea68283362e6a92a5c6a298c6c2a7224d47 /my-evolution/e-summary-rdf.c
parent50c60bc7ff8343894e7234cfa09b26edf5fe3397 (diff)
downloadgsoc2013-evolution-b190305858a16818773cdf855a6d78eda2ee6bda.tar
gsoc2013-evolution-b190305858a16818773cdf855a6d78eda2ee6bda.tar.gz
gsoc2013-evolution-b190305858a16818773cdf855a6d78eda2ee6bda.tar.bz2
gsoc2013-evolution-b190305858a16818773cdf855a6d78eda2ee6bda.tar.lz
gsoc2013-evolution-b190305858a16818773cdf855a6d78eda2ee6bda.tar.xz
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-rdf.c')
-rw-r--r--my-evolution/e-summary-rdf.c14
1 files changed, 10 insertions, 4 deletions
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 <gnome-xml/parser.h>
#include <gnome-xml/xmlmemory.h>
+#include <libgnome/gnome-defs.h>
+#include <libgnome/gnome-i18n.h>
#include <gal/widgets/e-unicode.h>
#include <libgnomevfs/gnome-vfs.h>
#include "e-summary.h"
@@ -235,7 +237,9 @@ tree_walk (xmlNodePtr root,
full = g_strdup_printf ("<a href=\"%s\">", 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, "</a>");
}
@@ -284,7 +288,9 @@ tree_walk (xmlNodePtr root,
g_free (tmp);
}
- tmp = g_strdup_printf ("%s\n</A></font></li>", e_utf8_from_locale_string (p));
+ p = e_utf8_from_locale_string (p);
+ tmp = g_strdup_printf ("%s\n</A></font></li>", 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 ("<b>Error downloading RDF</b>");
+ r->html = e_utf8_from_locale_string (_("<b>Error downloading RDF</b>"));
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 ("<b>Error downloading RDF</b>");
+ r->html = e_utf8_from_locale_string (_("<b>Error downloading RDF</b>"));
e_summary_draw (r->summary);
return;