Mercurial > pidgin
diff src/protocols/jabber/jabber.c @ 5236:0d4b8ca97c17
[gaim-migrate @ 5606]
Bjoern Voigt writes:
"I made some i18n fixes and updates for the German translation. The
i18n fixes include:
- new i18n files in po/POTFILES.in
- i18n fixes for the Jabber plugin
- i18n fixes for IRC plugin"
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 26 Apr 2003 20:42:30 +0000 |
parents | 890b29f00b68 |
children | e4dadc60ea5a |
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c Sat Apr 26 20:31:33 2003 +0000 +++ b/src/protocols/jabber/jabber.c Sat Apr 26 20:42:30 2003 +0000 @@ -3174,8 +3174,8 @@ jbd = jabber_find_buddy(gc, realwho, TRUE); - *ap++ = g_strdup_printf("<B>Jabber ID:</B> %s<BR>\n", realwho); - *ap++ = g_strdup_printf("<B>Error:</B> %s<BR>\n", jbd->error_msg); + *ap++ = g_strdup_printf("<B>%s:</B> %s<BR>\n", _("Jabber ID"), realwho); + *ap++ = g_strdup_printf("<B>%s:</B> %s<BR>\n", _("Error"), jbd->error_msg); *ap = NULL; final= g_strjoinv(NULL, str_arr); @@ -3225,8 +3225,8 @@ char *status; realwho = g_strdup_printf("%s/%s", buddy, jri->name); status = strdup_withhtml(jabber_lookup_away(gjc, realwho)); - *ap++ = g_strdup_printf("<B>Jabber ID:</B> %s<BR>\n", realwho); - *ap++ = g_strdup_printf("<B>Status:</B> %s%s%s<BR>\n", jabber_get_state_string(jri->state), status ? ": " : "", status ? status : ""); + *ap++ = g_strdup_printf("<B>%s:</B> %s<BR>\n", _("Jabber ID"), realwho); + *ap++ = g_strdup_printf("<B>%s:</B> %s%s%s<BR>\n", _("Status"), jabber_get_state_string(jri->state), status ? ": " : "", status ? status : ""); g_free(status); g_free(realwho); resources = resources->next; @@ -3284,7 +3284,8 @@ char *text = NULL; if(stripped) text = g_markup_escape_text(stripped, strlen(stripped)); - ret = g_strdup_printf(_("<b>Status:</b> %s%s%s"), + ret = g_strdup_printf("<b>%s:</b> %s%s%s", + _("Status"), jabber_get_state_string(jri->state), text ? ": " : "", text ? text : ""); @@ -3295,7 +3296,7 @@ } else if(jbd && !GAIM_BUDDY_IS_ONLINE(b) && (jbd->subscription & JABBER_SUB_PENDING || !(jbd->subscription & JABBER_SUB_TO))) { - ret = g_strdup(_("<b>Status:</b> Not Authorized")); + ret = g_strdup_printf("<b>%s:</b> %s", _("Status"), _("Not Authorized")); } return ret; } @@ -3649,7 +3650,7 @@ jri = jabber_find_resource(GJ_GC(gjc), buddy); - *ap++ = g_strdup_printf("<B>Jabber ID:</B> %s<BR>\n", buddy); + *ap++ = g_strdup_printf("<B>%s:</B> %s<BR>\n", _("Jabber ID"), buddy); for(vc_tp = vcard_template_data; vc_tp->label != NULL; ++vc_tp) { if(strcmp(vc_tp->tag, "DESC") == 0) @@ -3663,10 +3664,10 @@ } if(cdata != NULL) { if(vc_tp->url == NULL) { - *ap++ = g_strdup_printf("<B>%s:</B> %s<BR>\n", vc_tp->label, cdata); + *ap++ = g_strdup_printf("<B>%s:</B> %s<BR>\n", _(vc_tp->label), cdata); } else { gchar *fmt = g_strdup_printf("<B>%%s:</B> %s<BR>\n", vc_tp->url); - *ap++ = g_strdup_printf(fmt, vc_tp->label, cdata, cdata); + *ap++ = g_strdup_printf(fmt, _(vc_tp->label), cdata, cdata); g_free(fmt); } } @@ -3674,7 +3675,8 @@ status = strdup_withhtml(jabber_lookup_away(gjc, buddy)); - *ap++ = g_strdup_printf("<B>Status:</B> %s%s%s<BR>\n", + *ap++ = g_strdup_printf("<B>%s:</B> %s%s%s<BR>\n", + _("Status"), jri ? jabber_get_state_string(jri->state) : "", jri && status ? ": " : "", status ? status : ""); g_free(status); @@ -4041,8 +4043,8 @@ b->title = _("Gaim - Edit Jabber vCard"); b->role = "set_info"; - b->instructions->text = g_strdup(multi_entry_instructions); - b->entries_title = g_strdup(entries_title); + b->instructions->text = g_strdup(_(multi_entry_instructions)); + b->entries_title = g_strdup(_(entries_title)); b->custom = (void *) jabber_format_info;