# HG changeset patch # User Mark Doliner # Date 1258929591 0 # Node ID b6374abb0510c25b8c8733d98971a4bef0f7b3dc # Parent a7dadbac9897def3f6bbd737b3b1a8ea09f5e597 Finish making this change that I started earlier today. This doesn't change the string freeze. The reason for doing it this way is so that translators don't have to deal with the HTML--less room for error diff -r a7dadbac9897 -r b6374abb0510 libpurple/protocols/mxit/mxit.c --- a/libpurple/protocols/mxit/mxit.c Sun Nov 22 21:13:52 2009 +0000 +++ b/libpurple/protocols/mxit/mxit.c Sun Nov 22 22:39:51 2009 +0000 @@ -170,7 +170,7 @@ struct contact* contact; PurpleBuddy* buddy; const char* who; - const char* tmp; + char* tmp; gc = purple_conversation_get_gc( conv ); if ( session->con != gc ) { @@ -205,9 +205,9 @@ case MXIT_TYPE_CHATROOM : case MXIT_TYPE_GALLERY : case MXIT_TYPE_INFO : - /* TODO: Allow "Loading menu..." to be localized (but not the HTML markup) */ - tmp = _("Loading menu..."); - serv_got_im( session->con, who, "Loading menu...\n", PURPLE_MESSAGE_NOTIFY, time( NULL ) ); + tmp = g_strdup_printf("%s\n", _("Loading menu...")); + serv_got_im( session->con, who, tmp, PURPLE_MESSAGE_NOTIFY, time( NULL ) ); + g_free(tmp); mxit_send_message( session, who, " ", FALSE ); default : break;