From 4131f00f3470804d007194f2a0c71446074db5bc Mon Sep 17 00:00:00 2001 From: Nuno Ferreira Date: Tue, 11 Aug 1998 22:05:55 +0000 Subject: Made title i18n friendly. This was bug #215. * main.c (new_calendar): Made title i18n friendly. This was bug #215. * eventedit.c (ee_store_recur_end_to_ical): Set recur->enddate to recur->_enddate, not to itself, when adding recurring event and supplying an end date. This fixes (at least part of) bug #99. svn path=/trunk/; revision=310 --- calendar/gui/main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'calendar/gui/main.c') diff --git a/calendar/gui/main.c b/calendar/gui/main.c index a769fa6df0..80ee344fcb 100644 --- a/calendar/gui/main.c +++ b/calendar/gui/main.c @@ -396,10 +396,12 @@ static void new_calendar (char *full_name, char *calendar_file, char *geometry, char *page) { GtkWidget *toplevel; - char *title; + char title[128]; int xpos, ypos, width, height; - - title = g_copy_strings (full_name, "'s calendar", NULL); + + /* i18n: This "%s%s" indicates possession. Languages where the order is + the inverse should translate it to "%2$s%1$s". */ + g_snprintf(title, 128, _("%s%s"), full_name, _("'s calendar"), NULL); toplevel = gnome_calendar_new (title); if (gnome_parse_geometry (geometry, &xpos, &ypos, &width, &height)){ @@ -408,7 +410,6 @@ new_calendar (char *full_name, char *calendar_file, char *geometry, char *page) if (width != -1) gtk_widget_set_usize (toplevel, width, height); } - g_free (title); setup_menu (toplevel); if (page) -- cgit v1.2.3