# HG changeset patch # User Ka-Hing Cheung # Date 1240807961 0 # Node ID e0d739a002b4473a8080f277cb5ab08d517fa505 # Parent baa23b7a4d42ed1e36b2ea72f64724b630b6ad19 correctly use some text marked by N_(), and mark one more string as translatable diff -r baa23b7a4d42 -r e0d739a002b4 libpurple/protocols/qq/buddy_info.c --- a/libpurple/protocols/qq/buddy_info.c Sun Apr 26 22:55:58 2009 +0000 +++ b/libpurple/protocols/qq/buddy_info.c Mon Apr 27 04:52:41 2009 +0000 @@ -191,7 +191,7 @@ } switch (field_infos[index].type) { case QQ_FIELD_BOOL: - purple_notify_user_info_add_pair(user_info, field_infos[index].text, + purple_notify_user_info_add_pair(user_info, _(field_infos[index].text), strtol(segments[index], NULL, 10) ? _("True") : _("False")); break; case QQ_FIELD_CHOICE: @@ -200,7 +200,7 @@ choice_num = 0; } - purple_notify_user_info_add_pair(user_info, field_infos[index].text, field_infos[index].choice[choice_num]); + purple_notify_user_info_add_pair(user_info, _(field_infos[index].text), field_infos[index].choice[choice_num]); break; case QQ_FIELD_LABEL: case QQ_FIELD_STRING: @@ -208,7 +208,7 @@ default: if (strlen(segments[index]) != 0) { utf8_value = qq_to_utf8(segments[index], QQ_CHARSET_DEFAULT); - purple_notify_user_info_add_pair(user_info, field_infos[index].text, utf8_value); + purple_notify_user_info_add_pair(user_info, _(field_infos[index].text), utf8_value); g_free(utf8_value); } break; @@ -348,18 +348,18 @@ utf8_value = qq_to_utf8(segments[index], QQ_CHARSET_DEFAULT); if (field_infos[index].type == QQ_FIELD_STRING) { field = purple_request_field_string_new( - field_infos[index].id, field_infos[index].text, utf8_value, FALSE); + field_infos[index].id, _(field_infos[index].text), utf8_value, FALSE); } else { field = purple_request_field_string_new( - field_infos[index].id, field_infos[index].text, utf8_value, TRUE); + field_infos[index].id, _(field_infos[index].text), utf8_value, TRUE); } purple_request_field_group_add_field(group, field); g_free(utf8_value); break; case QQ_FIELD_BOOL: field = purple_request_field_bool_new( - field_infos[index].id, field_infos[index].text, - strtol(segments[index], NULL, 10) ? TRUE : FALSE); + field_infos[index].id, _(field_infos[index].text), + strtol(segments[index], NULL, 10) ? TRUE : FALSE); purple_request_field_group_add_field(group, field); break; case QQ_FIELD_CHOICE: @@ -374,7 +374,7 @@ } } field = purple_request_field_choice_new( - field_infos[index].id, field_infos[index].text, choice_num); + field_infos[index].id, _(field_infos[index].text), choice_num); for (i = 0; i < field_infos[index].choice_size; i++) { purple_request_field_choice_add(field, field_infos[index].choice[i]); } diff -r baa23b7a4d42 -r e0d739a002b4 libpurple/protocols/qq/qq.c --- a/libpurple/protocols/qq/qq.c Sun Apr 26 22:55:58 2009 +0000 +++ b/libpurple/protocols/qq/qq.c Mon Apr 27 04:52:41 2009 +0000 @@ -674,8 +674,8 @@ g_string_append(info, "wd
\n"); g_string_append(info, "x6719620
\n"); g_string_append(info, "netelk
\n"); - g_string_append(info, "and more, please let me know... thank you!
\n"); - g_string_append(info, "
\n"); + g_string_append(info, _("and more, please let me know... thank you!))")); + g_string_append(info, "
\n
\n"); g_string_append(info, _("

And, all the boys in the backroom...
\n")); g_string_append(info, _("Feel free to join us! :)")); g_string_append(info, "");