# HG changeset patch # User Mark Doliner # Date 1307901179 0 # Node ID 3a3af6ad3166df345ed2cd4ccd447718d257bd15 # Parent 16e3485f336b2e3a4ed9b50a975fab5b51a65d27 Use dngettext() for two strings in the MXit protocol so that we handle the plural case(s) correctly diff -r 16e3485f336b -r 3a3af6ad3166 libpurple/protocols/mxit/profile.c --- a/libpurple/protocols/mxit/profile.c Sun Jun 12 17:45:46 2011 +0000 +++ b/libpurple/protocols/mxit/profile.c Sun Jun 12 17:52:59 2011 +0000 @@ -322,9 +322,9 @@ purple_notify_searchresults_button_add( results, PURPLE_NOTIFY_BUTTON_INVITE, mxit_search_results_add_cb ); if ( searchType == CP_SUGGEST_FRIENDS ) - text = g_strdup_printf( _( "You have %i suggested friends." ), maxResults ); + text = g_strdup_printf( dngettext( PACKAGE, "You have %i suggested friend.", "You have %i suggested friends.", maxResults ), maxResults ); else - text = g_strdup_printf( _( "We found %i contacts that match your search." ), maxResults ); + text = g_strdup_printf( dngettext( PACKAGE, "We found %i contact that matches your search.", "We found %i contacts that match your search.", maxResults ), maxResults ); purple_notify_searchresults( session->con, NULL, text, NULL, results, NULL, NULL );