pidgin: 64f4eb5c: Use dngettext() for two strings in the M...
markdoliner at pidgin.im
markdoliner at pidgin.im
Sun Jun 12 13:55:21 EDT 2011
----------------------------------------------------------------------
Revision: 64f4eb5c598356fe1b8b9bc376faa66641096eda
Parent: 85da0d7a218eb1ea8d50919d292c9fe369131168
Author: markdoliner at pidgin.im
Date: 06/12/11 13:52:59
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/64f4eb5c598356fe1b8b9bc376faa66641096eda
Changelog:
Use dngettext() for two strings in the MXit protocol so that we handle
the plural case(s) correctly
Changes against parent 85da0d7a218eb1ea8d50919d292c9fe369131168
patched libpurple/protocols/mxit/profile.c
-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/profile.c e50baa64e5320fa3621fdde92ef911de0695de00
+++ libpurple/protocols/mxit/profile.c ccfd30e7e5da09e35101d56835b08f301bb655a7
@@ -322,9 +322,9 @@ void mxit_show_search_results( struct MX
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 );
More information about the Commits
mailing list