From 361a4ff8955acfa250dc4a804b1ee5a8628d6260 Mon Sep 17 00:00:00 2001 From: Sushma Rai Date: Mon, 25 Jul 2005 07:06:16 +0000 Subject: Patch by "Arunprakash " to change the string marked for translation. Related to his previous patch for #235830. svn path=/trunk/; revision=29877 --- addressbook/ChangeLog | 6 ++++++ addressbook/gui/contact-editor/e-contact-editor.c | 15 +++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 613c663d24..733edeea53 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2005-07-25 Arunprakash + + * gui/contact-editor/e-contact-editor.c (file_as_entry_changed) + (fill_in_simple) : Modified the way of constructing the title + for the contact editor to facilitate proper translation. + 2005-07-22 Sushma Rai * gui/component/GNOME_Evolution_Addressbook.server.in.in: Using diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index e42986341d..f2e92dd64d 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -526,15 +526,15 @@ static void file_as_entry_changed (GtkWidget *widget, EContactEditor *editor) { char *string = gtk_editable_get_chars (GTK_EDITABLE (widget), 0, -1); - gchar *title = _("Contact Editor"); if (string && *string) { - title = g_strconcat (title, " - ", string, NULL); + gchar *title; + title = g_strdup_printf (_("Contact Editor - %s"), string); gtk_window_set_title (GTK_WINDOW (editor->app), title); g_free (title); } else { - gtk_window_set_title (GTK_WINDOW (editor->app), title); + gtk_window_set_title (GTK_WINDOW (editor->app), _("Contact Editor")); } g_free (string); @@ -2253,7 +2253,6 @@ static void fill_in_simple (EContactEditor *editor) { EContactName *name; - gchar *title = _("Contact Editor"); gchar *filename; gint i; @@ -2289,13 +2288,13 @@ fill_in_simple (EContactEditor *editor) filename = (gchar *) e_contact_get (editor->contact, E_CONTACT_FILE_AS); if (filename) { - title = g_strconcat (title, " - ", filename, NULL); + gchar *title; + title = g_strdup_printf (_("Contact Editor - %s"), filename); gtk_window_set_title (GTK_WINDOW (editor->app), title); g_free (title); } - else { - gtk_window_set_title (GTK_WINDOW (editor->app), title); - } + else + gtk_window_set_title (GTK_WINDOW (editor->app), _("Contact Editor")); /* Update file_as combo options */ -- cgit