evolution/bnc-435722-book-uri-long.patch
Dominique Leuenberger 376a80452b Accepting request 27037 from home:dimstar:branches:GNOME:Factory
Copy from home:dimstar:branches:GNOME:Factory/evolution via accept of submit request 27037 revision 7.
Request was accepted with message:
Forwarding to openSUSE:Factory

OBS-URL: https://build.opensuse.org/request/show/27037
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/evolution?expand=0&rev=53
2009-12-18 08:29:59 +00:00

28 lines
921 B
Diff

Index: addressbook/printing/e-contact-print.c
===================================================================
--- addressbook/printing/e-contact-print.c.orig
+++ addressbook/printing/e-contact-print.c
@@ -265,8 +265,20 @@ e_contact_print_contact (EContact *conta
if (value == NULL || *value == '\0')
continue;
- text = g_strdup_printf ("%s: %s",
- e_contact_pretty_name (field), value);
+ if (field == E_CONTACT_BOOK_URI) {
+ gchar **tmpv;
+ tmpv = g_strsplit (value, ";", 2);
+ /* To translators: While printing contacts display the addressbook
+ to which the contact belongs.
+ Example: "Address Book: Frequent Contacts"
+ */
+ text = g_strdup_printf ("%s: %s",
+ _( "Address Book" ), tmpv[1]);
+ g_strfreev (tmpv);
+ }
+ else
+ text = g_strdup_printf ("%s: %s",
+ e_contact_pretty_name (field), value);
if (ctxt->pages == ctxt->page_nr)
e_contact_output (