aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorSushma Rai <rsushma@src.gnome.org>2005-07-25 15:06:16 +0800
committerSushma Rai <rsushma@src.gnome.org>2005-07-25 15:06:16 +0800
commit361a4ff8955acfa250dc4a804b1ee5a8628d6260 (patch)
tree01ad2c5ddc90fa8bf3dde396a4ed9f076f6adcec /addressbook/gui
parente0a96e0f961d1752d52a485101a721a1ec836541 (diff)
downloadgsoc2013-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
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c15
1 files changed, 7 insertions, 8 deletions
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 */