Changeset 12412 for trunk/gtk/tr-prefs.c


Ignore:
Timestamp:
May 2, 2011, 5:58:27 PM (11 years ago)
Author:
jordan
Message:

(trunk gtk) use ngettext() instead of gtr_dngettext() to address https://bugs.launchpad.net/ubuntu/+source/transmission/+bug/760761

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-prefs.c

    r12407 r12412  
    395395    const int n = tr_blocklistGetRuleCount( gtr_core_session( core ) );
    396396    g_snprintf( buf1, sizeof( buf1 ),
    397                 gtr_ngettext( "Blocklist contains %'d rule",
    398                               "Blocklist contains %'d rules", n ), n );
     397                ngettext( "Blocklist contains %'d rule",
     398                          "Blocklist contains %'d rules", n ), n );
    399399    g_snprintf( buf2, sizeof( buf2 ), "<i>%s</i>", buf1 );
    400400    gtk_label_set_markup( GTK_LABEL( w ), buf2 );
     
    428428    const bool success = n >= 0;
    429429    const int count = n >=0 ? n : tr_blocklistGetRuleCount( gtr_core_session( core ) );
    430     const char * s = gtr_ngettext( "Blocklist has %'d rule.", "Blocklist has %'d rules.", count );
     430    const char * s = ngettext( "Blocklist has %'d rule.", "Blocklist has %'d rules.", count );
    431431    struct blocklist_data * data = gdata;
    432432    GtkMessageDialog * d = GTK_MESSAGE_DIALOG( data->updateBlocklistDialog );
Note: See TracChangeset for help on using the changeset viewer.