pidgin: 077a5481: Finish making this change that I started...

markdoliner at pidgin.im markdoliner at pidgin.im
Sun Nov 22 17:46:29 EST 2009


-----------------------------------------------------------------
Revision: 077a54811da2626b11c1be8cb84c4ff3a5b0b134
Ancestor: 8e322979ffde57c484191dd31dd58d64e1b2add5
Author: markdoliner at pidgin.im
Date: 2009-11-22T22:39:51
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/077a54811da2626b11c1be8cb84c4ff3a5b0b134

Modified files:
        libpurple/protocols/mxit/mxit.c

ChangeLog: 

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

-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/mxit.c	2ffda78ddb853fa5934002321c985e9bb9ffc0d9
+++ libpurple/protocols/mxit/mxit.c	e79c1a51ce81d6b2ad9076c2e84b661444cf4893
@@ -170,7 +170,7 @@ static void mxit_cb_chat_created( Purple
 	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 @@ static void mxit_cb_chat_created( Purple
 		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, "<font color=\"#999999\">Loading menu...</font>\n", PURPLE_MESSAGE_NOTIFY, time( NULL ) );
+				tmp = g_strdup_printf("<font color=\"#999999\">%s</font>\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;


More information about the Commits mailing list