aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/main.c
diff options
context:
space:
mode:
authorNuno Ferreira <nuno@src.gnome.org>1998-08-12 06:05:55 +0800
committerNuno Ferreira <nuno@src.gnome.org>1998-08-12 06:05:55 +0800
commit4131f00f3470804d007194f2a0c71446074db5bc (patch)
tree201ba5d0ddf2d8445c136264cc849bdb2f7d6a30 /calendar/gui/main.c
parent340b547a812fccaa0b7f57511eef820b74d07a55 (diff)
downloadgsoc2013-evolution-4131f00f3470804d007194f2a0c71446074db5bc.tar
gsoc2013-evolution-4131f00f3470804d007194f2a0c71446074db5bc.tar.gz
gsoc2013-evolution-4131f00f3470804d007194f2a0c71446074db5bc.tar.bz2
gsoc2013-evolution-4131f00f3470804d007194f2a0c71446074db5bc.tar.lz
gsoc2013-evolution-4131f00f3470804d007194f2a0c71446074db5bc.tar.xz
gsoc2013-evolution-4131f00f3470804d007194f2a0c71446074db5bc.tar.zst
gsoc2013-evolution-4131f00f3470804d007194f2a0c71446074db5bc.zip
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
Diffstat (limited to 'calendar/gui/main.c')
-rw-r--r--calendar/gui/main.c9
1 files changed, 5 insertions, 4 deletions
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)