comparison libpurple/protocols/jabber/buddy.c @ 26275:63a5274d03cc

propagate from branch 'im.pidgin.pidgin' (head e028e1fa5d4d70792f0219311b12e5f4b1587776) to branch 'im.pidgin.cpw.darkrain42.xmpp.bosh' (head 26b8367a7c995a8d07fb2c9aa373041822b59c36)
author Paul Aurich <paul@darkrain42.org>
date Fri, 03 Apr 2009 02:43:09 +0000
parents 2597de135090 5c6cf6d1e65f
children bc7fac8e2f79
comparison
equal deleted inserted replaced
26274:047e57f88431 26275:63a5274d03cc
301 * construction routines. 301 * construction routines.
302 */ 302 */
303 303
304 struct vcard_template { 304 struct vcard_template {
305 char *label; /* label text pointer */ 305 char *label; /* label text pointer */
306 char *text; /* entry text pointer */
307 int visible; /* should entry field be "visible?" */
308 int editable; /* should entry field be editable? */
309 char *tag; /* tag text */ 306 char *tag; /* tag text */
310 char *ptag; /* parent tag "path" text */ 307 char *ptag; /* parent tag "path" text */
311 char *url; /* vCard display format if URL */
312 } const vcard_template_data[] = { 308 } const vcard_template_data[] = {
313 {N_("Full Name"), NULL, TRUE, TRUE, "FN", NULL, NULL}, 309 {N_("Full Name"), "FN", NULL},
314 {N_("Family Name"), NULL, TRUE, TRUE, "FAMILY", "N", NULL}, 310 {N_("Family Name"), "FAMILY", "N"},
315 {N_("Given Name"), NULL, TRUE, TRUE, "GIVEN", "N", NULL}, 311 {N_("Given Name"), "GIVEN", "N"},
316 {N_("Nickname"), NULL, TRUE, TRUE, "NICKNAME", NULL, NULL}, 312 {N_("Nickname"), "NICKNAME", NULL},
317 {N_("URL"), NULL, TRUE, TRUE, "URL", NULL, "<A HREF=\"%s\">%s</A>"}, 313 {N_("URL"), "URL", NULL},
318 {N_("Street Address"), NULL, TRUE, TRUE, "STREET", "ADR", NULL}, 314 {N_("Street Address"), "STREET", "ADR"},
319 {N_("Extended Address"), NULL, TRUE, TRUE, "EXTADD", "ADR", NULL}, 315 {N_("Extended Address"), "EXTADD", "ADR"},
320 {N_("Locality"), NULL, TRUE, TRUE, "LOCALITY", "ADR", NULL}, 316 {N_("Locality"), "LOCALITY", "ADR"},
321 {N_("Region"), NULL, TRUE, TRUE, "REGION", "ADR", NULL}, 317 {N_("Region"), "REGION", "ADR"},
322 {N_("Postal Code"), NULL, TRUE, TRUE, "PCODE", "ADR", NULL}, 318 {N_("Postal Code"), "PCODE", "ADR"},
323 {N_("Country"), NULL, TRUE, TRUE, "CTRY", "ADR", NULL}, 319 {N_("Country"), "CTRY", "ADR"},
324 {N_("Telephone"), NULL, TRUE, TRUE, "NUMBER", "TEL", NULL}, 320 {N_("Telephone"), "NUMBER", "TEL"},
325 {N_("Email"), NULL, TRUE, TRUE, "USERID", "EMAIL", "<A HREF=\"mailto:%s\">%s</A>"}, 321 {N_("Email"), "USERID", "EMAIL"},
326 {N_("Organization Name"), NULL, TRUE, TRUE, "ORGNAME", "ORG", NULL}, 322 {N_("Organization Name"), "ORGNAME", "ORG"},
327 {N_("Organization Unit"), NULL, TRUE, TRUE, "ORGUNIT", "ORG", NULL}, 323 {N_("Organization Unit"), "ORGUNIT", "ORG"},
328 {N_("Title"), NULL, TRUE, TRUE, "TITLE", NULL, NULL}, 324 {N_("Title"), "TITLE", NULL},
329 {N_("Role"), NULL, TRUE, TRUE, "ROLE", NULL, NULL}, 325 {N_("Role"), "ROLE", NULL},
330 {N_("Birthday"), NULL, TRUE, TRUE, "BDAY", NULL, NULL}, 326 {N_("Birthday"), "BDAY", NULL},
331 {N_("Description"), NULL, TRUE, TRUE, "DESC", NULL, NULL}, 327 {N_("Description"), "DESC", NULL},
332 {"", NULL, TRUE, TRUE, "N", NULL, NULL}, 328 {"", "N", NULL},
333 {"", NULL, TRUE, TRUE, "ADR", NULL, NULL}, 329 {"", "ADR", NULL},
334 {"", NULL, TRUE, TRUE, "ORG", NULL, NULL}, 330 {"", "ORG", NULL},
335 {NULL, NULL, 0, 0, NULL, NULL, NULL} 331 {NULL, NULL, NULL}
336 }; 332 };
337 333
338 /* 334 /*
339 * The "vCard" tag's attribute list... 335 * The "vCard" tag's attribute list...
340 */ 336 */