comparison src/protocols/trepia/trepia.c @ 6441:3683471e1417

[gaim-migrate @ 6949] Bjoern Voigt writes: "I prepared an updated German translation (file i18n18a.patch). i18n18a.patch contains: - updated German translation - src/gtkprivacy.c added to po/POTFILES.in - marked some forgotten strings in plugins/statenotify.c and src/protocols/trepia/trepia.c with _()" committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 12 Aug 2003 12:38:29 +0000
parents 8f94cce8faa5
children fb64cc87bc96
comparison
equal deleted inserted replaced
6440:ded6796da6b9 6441:3683471e1417
429 429
430 first_name = trepia_profile_get_first_name(profile); 430 first_name = trepia_profile_get_first_name(profile);
431 last_name = trepia_profile_get_last_name(profile); 431 last_name = trepia_profile_get_last_name(profile);
432 432
433 if (first_name != NULL || last_name != NULL) { 433 if (first_name != NULL || last_name != NULL) {
434 tmp = g_strdup_printf("<b>Name:</b> %s%s%s\n", 434 tmp = g_strdup_printf("<b>%s:</b> %s%s%s\n",_("Name"),
435 (first_name == NULL ? "" : first_name), 435 (first_name == NULL ? "" : first_name),
436 (first_name == NULL ? "" : " "), 436 (first_name == NULL ? "" : " "),
437 (last_name == NULL ? "" : last_name)); 437 (last_name == NULL ? "" : last_name));
438 438
439 tmp2 = g_strconcat(text, tmp, NULL); 439 tmp2 = g_strconcat(text, tmp, NULL);
441 g_free(text); 441 g_free(text);
442 text = tmp2; 442 text = tmp2;
443 } 443 }
444 444
445 if ((int_value = trepia_profile_get_age(profile)) != 0) { 445 if ((int_value = trepia_profile_get_age(profile)) != 0) {
446 tmp = g_strdup_printf("<b>Age:</b> %d\n", int_value); 446 tmp = g_strdup_printf("<b>%s:</b> %d\n", _("Age"),int_value);
447 447
448 tmp2 = g_strconcat(text, tmp, NULL); 448 tmp2 = g_strconcat(text, tmp, NULL);
449 g_free(tmp); 449 g_free(tmp);
450 g_free(text); 450 g_free(text);
451 text = tmp2; 451 text = tmp2;
452 } 452 }
453 453
454 tmp = g_strdup_printf("<b>Gender:</b> %s\n", 454 tmp = g_strdup_printf("<b>%s:</b> %s\n",_("Gender"),
455 (trepia_profile_get_sex(profile) == 'F' ? "Female" : "Male")); 455 (trepia_profile_get_sex(profile) == 'F' ? _("Female") : _("Male")));
456 456
457 tmp2 = g_strconcat(text, tmp, NULL); 457 tmp2 = g_strconcat(text, tmp, NULL);
458 g_free(tmp); 458 g_free(tmp);
459 g_free(text); 459 g_free(text);
460 text = tmp2; 460 text = tmp2;
461 461
462 if ((value = trepia_profile_get_city(profile)) != NULL) { 462 if ((value = trepia_profile_get_city(profile)) != NULL) {
463 tmp = g_strdup_printf("<b>City:</b> %s\n", value); 463 tmp = g_strdup_printf("<b>%s:</b> %s\n", _("City"), value);
464 464
465 tmp2 = g_strconcat(text, tmp, NULL); 465 tmp2 = g_strconcat(text, tmp, NULL);
466 g_free(tmp); 466 g_free(tmp);
467 g_free(text); 467 g_free(text);
468 text = tmp2; 468 text = tmp2;
469 } 469 }
470 470
471 if ((value = trepia_profile_get_state(profile)) != NULL) { 471 if ((value = trepia_profile_get_state(profile)) != NULL) {
472 tmp = g_strdup_printf("<b>State:</b> %s\n", value); 472 tmp = g_strdup_printf("<b>%s:</b> %s\n", _("State"), value);
473 473
474 tmp2 = g_strconcat(text, tmp, NULL); 474 tmp2 = g_strconcat(text, tmp, NULL);
475 g_free(tmp); 475 g_free(tmp);
476 g_free(text); 476 g_free(text);
477 text = tmp2; 477 text = tmp2;
478 } 478 }
479 479
480 if ((value = trepia_profile_get_country(profile)) != NULL) { 480 if ((value = trepia_profile_get_country(profile)) != NULL) {
481 tmp = g_strdup_printf("<b>Country:</b> %s\n", value); 481 tmp = g_strdup_printf("<b>%s:</b> %s\n", _("Country"), value);
482 482
483 tmp2 = g_strconcat(text, tmp, NULL); 483 tmp2 = g_strconcat(text, tmp, NULL);
484 g_free(tmp); 484 g_free(tmp);
485 g_free(text); 485 g_free(text);
486 text = tmp2; 486 text = tmp2;
487 } 487 }
488 488
489 if ((value = trepia_profile_get_homepage(profile)) != NULL) { 489 if ((value = trepia_profile_get_homepage(profile)) != NULL) {
490 tmp = g_strdup_printf("<b>Homepage:</b> %s\n", value); 490 tmp = g_strdup_printf("<b>%s:</b> %s\n", _("Homepage"), value);
491 491
492 tmp2 = g_strconcat(text, tmp, NULL); 492 tmp2 = g_strconcat(text, tmp, NULL);
493 g_free(tmp); 493 g_free(tmp);
494 g_free(text); 494 g_free(text);
495 text = tmp2; 495 text = tmp2;
496 } 496 }
497 497
498 if ((value = trepia_profile_get_profile(profile)) != NULL) { 498 if ((value = trepia_profile_get_profile(profile)) != NULL) {
499 char *escaped_val = g_markup_escape_text(value, -1); 499 char *escaped_val = g_markup_escape_text(value, -1);
500 500
501 tmp = g_strdup_printf("<b>Profile:</b> %s\n", escaped_val); 501 tmp = g_strdup_printf("<b>%s:</b> %s\n", _("Profile"), escaped_val);
502 502
503 g_free(escaped_val); 503 g_free(escaped_val);
504 504
505 tmp2 = g_strconcat(text, tmp, NULL); 505 tmp2 = g_strconcat(text, tmp, NULL);
506 g_free(tmp); 506 g_free(tmp);