aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-calendar.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-calendar.c
parent50c60bc7ff8343894e7234cfa09b26edf5fe3397 (diff)
downloadgsoc2013-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-calendar.c')
-rw-r--r--my-evolution/e-summary-calendar.c26
1 files changed, 18 insertions, 8 deletions
diff --git a/my-evolution/e-summary-calendar.c b/my-evolution/e-summary-calendar.c
index 3bc2b21f46..71e3e4670b 100644
--- a/my-evolution/e-summary-calendar.c
+++ b/my-evolution/e-summary-calendar.c
@@ -11,6 +11,7 @@
#endif
#include <gnome.h>
+#include <gal/widgets/e-unicode.h>
#include "e-summary-calendar.h"
#include "e-summary.h"
@@ -152,21 +153,30 @@ generate_html (gpointer data)
CALOBJ_TYPE_EVENT, day_begin,
day_end);
if (uids == NULL) {
- if (calendar->html) {
- g_free (calendar->html);
- }
- calendar->html = g_strdup ("<dl><dt><img src=\"ico-calendar.png\" align=\"middle\" "
- "alt=\"\" width=\"48\" height=\"48\"> <b><a href=\"evolution:/local/Calendar\">Appointments</a>"
- "</b></dt><dd><b>No appointments</b></dd></dl>");
+ char *s1, *s2;
+
+ s1 = e_utf8_from_locale_string (_("Appointments"));
+ s2 = e_utf8_from_locale_string (_("No appointments"));
+ g_free (calendar->html);
+ calendar->html = g_strconcat ("<dl><dt><img src=\"ico-calendar.png\" align=\"middle\" "
+ "alt=\"\" width=\"48\" height=\"48\"> <b><a href=\"evolution:/local/Calendar\">",
+ s1, "</a></b></dt><dd><b>", s2, "</b></dd></dl>", NULL);
+ g_free (s1);
+ g_free (s2);
e_summary_draw (summary);
return FALSE;
} else {
+ char *s;
+
uids = cal_list_sort (uids, sort_uids, summary);
string = g_string_new ("<dl><dt><img src=\"ico-calendar.png\" align=\"middle\" "
- "alt=\"\" width=\"48\" height=\"48\"> <b><a href=\"evolution:/local/Calendar\">Appointments</a>"
- "</b></dt><dd>");
+ "alt=\"\" width=\"48\" height=\"48\"> <b><a href=\"evolution:/local/Calendar\">");
+ s = e_utf8_from_locale_string (_("Appointments"));
+ g_string_append (string, s);
+ g_free (s);
+ g_string_append (string, "</a></b></dt><dd>");
for (l = uids; l; l = l->next) {
char *uid, *start_str;
CalComponent *comp;