changeset 28997:b6374abb0510

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
author Mark Doliner <mark@kingant.net>
date Sun, 22 Nov 2009 22:39:51 +0000
parents a7dadbac9897
children 2ab56f7e801e ca0f113fee11
files libpurple/protocols/mxit/mxit.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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, "<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;