diff options
author | Sushma Rai <rsushma@src.gnome.org> | 2005-07-25 15:06:16 +0800 |
---|---|---|
committer | Sushma Rai <rsushma@src.gnome.org> | 2005-07-25 15:06:16 +0800 |
commit | 361a4ff8955acfa250dc4a804b1ee5a8628d6260 (patch) | |
tree | 01ad2c5ddc90fa8bf3dde396a4ed9f076f6adcec | |
parent | e0a96e0f961d1752d52a485101a721a1ec836541 (diff) | |
download | gsoc2013-evolution-361a4ff8955acfa250dc4a804b1ee5a8628d6260.tar.gz gsoc2013-evolution-361a4ff8955acfa250dc4a804b1ee5a8628d6260.tar.zst gsoc2013-evolution-361a4ff8955acfa250dc4a804b1ee5a8628d6260.zip |
Patch by "Arunprakash <arunp@novell.com>" to change the string marked for
translation. Related to his previous patch for #235830.
svn path=/trunk/; revision=29877
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | 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 <arunp@novell.com> + + * 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 <rsushma@novell.com> * 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 */ |