From: <mar...@us...> - 2006-12-09 07:39:41
|
Revision: 17926 http://svn.sourceforge.net/gaim/?rev=17926&view=rev Author: markhuetsch Date: 2006-12-08 23:39:29 -0800 (Fri, 08 Dec 2006) Log Message: ----------- Mark these strings for translation. Modified Paths: -------------- trunk/libgaim/protocols/qq/qq.c trunk/libgaim/protocols/qq/utils.c Modified: trunk/libgaim/protocols/qq/qq.c =================================================================== --- trunk/libgaim/protocols/qq/qq.c 2006-12-09 07:20:46 UTC (rev 17925) +++ trunk/libgaim/protocols/qq/qq.c 2006-12-09 07:39:29 UTC (rev 17926) @@ -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); Modified: trunk/libgaim/protocols/qq/utils.c =================================================================== --- trunk/libgaim/protocols/qq/utils.c 2006-12-09 07:20:46 UTC (rev 17925) +++ trunk/libgaim/protocols/qq/utils.c 2006-12-09 07:39:29 UTC (rev 17926) @@ -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 */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |