Mercurial > pidgin.yaz
changeset 15141:05c55c2b6c25
[gaim-migrate @ 17926]
Mark these strings for translation.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Huetsch <markhuetsch> |
---|---|
date | Sat, 09 Dec 2006 07:39:29 +0000 |
parents | 63d554c2675d |
children | 66c857a355b4 |
files | libgaim/protocols/qq/qq.c libgaim/protocols/qq/utils.c |
diffstat | 2 files changed, 12 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/libgaim/protocols/qq/qq.c Sat Dec 09 07:20:46 2006 +0000 +++ b/libgaim/protocols/qq/qq.c Sat Dec 09 07:39:29 2006 +0000 @@ -167,23 +167,23 @@ switch(q_bud->status) { case QQ_BUDDY_OFFLINE: - g_string_append(status, "Offline"); + g_string_append(status, _("Offline")); break; case QQ_BUDDY_ONLINE_NORMAL: return NULL; break; /* TODO What does this status mean? Labelling it as offline... */ case QQ_BUDDY_ONLINE_OFFLINE: - g_string_append(status, "Offline"); + g_string_append(status, _("Offline")); break; case QQ_BUDDY_ONLINE_AWAY: - g_string_append(status, "Away"); + g_string_append(status, _("Away")); break; case QQ_BUDDY_ONLINE_INVISIBLE: - g_string_append(status, "Invisible"); + g_string_append(status, _("Invisible")); break; default: - g_string_printf(status, "Unknown-%d", q_bud->status); + g_string_printf(status, _("Unknown-%d"), q_bud->status); } return g_string_free(status, FALSE); @@ -205,27 +205,27 @@ { ip_str = gen_ip_str(q_bud->ip); if (strlen(ip_str) != 0) { - g_string_append_printf(tooltip, "\n<b>%s Address:</b> %s:%d", + g_string_append_printf(tooltip, _("\n<b>%s Address:</b> %s:%d"), (q_bud->comm_flag & QQ_COMM_FLAG_TCP_MODE) ? "TCP" : "UDP", ip_str, q_bud->port); } g_free(ip_str); - g_string_append_printf(tooltip, "\n<b>Age:</b> %d", q_bud->age); + g_string_append_printf(tooltip, _("\n<b>Age:</b> %d"), q_bud->age); switch (q_bud->gender) { case QQ_BUDDY_GENDER_GG: - g_string_append(tooltip, "\n<b>Gender:</b> Male"); + g_string_append(tooltip, _("\n<b>Gender:</b> Male")); break; case QQ_BUDDY_GENDER_MM: - g_string_append(tooltip, "\n<b>Gender:</b> Female"); + g_string_append(tooltip, _("\n<b>Gender:</b> Female")); break; case QQ_BUDDY_GENDER_UNKNOWN: - g_string_append(tooltip, "\n<b>Gender:</b> Unknown"); + g_string_append(tooltip, _("\n<b>Gender:</b> Unknown")); break; default: - g_string_append_printf(tooltip, "\n<b>Gender:</b> ERROR(%d)", q_bud->gender); + g_string_append_printf(tooltip, _("\n<b>Gender:</b> ERROR(%d)"), q_bud->gender); } if (q_bud->level) - g_string_append_printf(tooltip, "\n<b>Level:</b> %d", q_bud->level); + g_string_append_printf(tooltip, _("\n<b>Level:</b> %d"), q_bud->level); /* For debugging */ /* g_string_append_printf(tooltip, "\n<b>Flag:</b> %01x", q_bud->flag1);
--- a/libgaim/protocols/qq/utils.c Sat Dec 09 07:20:46 2006 +0000 +++ b/libgaim/protocols/qq/utils.c Sat Dec 09 07:39:29 2006 +0000 @@ -340,16 +340,6 @@ return icon_num_str; } -/* -gint face_to_icon_num(const gchar *face) -{ - gchar *icon_str = face_to_icon_str(face); - gint icon_num = strtol(icon_str, NULL, 10); - g_free(icon_str); - return icon_num; -} -*/ - /* return the location of the buddy icon dir * any application using libgaim but not installing the QQ buddy icons * under datadir needs to set the pref below, or buddy icons won't work */