Changeset 8936


Ignore:
Timestamp:
Aug 15, 2009, 4:43:25 PM (13 years ago)
Author:
charles
Message:

(trunk libT) ticket #2328's commit r8908 broke transmission-remote for platforms that don't have ngettext(). fix supplied by KyleK.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r8908 r8936  
    705705    seconds = ( seconds % 3600 ) % 60;
    706706
    707     tr_snprintf( d, sizeof( d ), ngettext( "%'d day", "%'d days", days ), days );
    708     tr_snprintf( h, sizeof( h ), ngettext( "%'d hour", "%'d hours", hours ), hours );
    709     tr_snprintf( m, sizeof( m ), ngettext( "%'d minute", "%'d minutes", minutes ), minutes );
    710     tr_snprintf( s, sizeof( s ), ngettext( "%'d second", "%'d seconds", seconds ), seconds );
     707    tr_snprintf( d, sizeof( d ), "%'d day%s", days, days==1?"":"s" );
     708    tr_snprintf( h, sizeof( h ), "%'d hour%s", hours, hours==1?"":"s" );
     709    tr_snprintf( m, sizeof( m ), "%'d minute%s", minutes, minutes==1?"":"s" );
     710    tr_snprintf( s, sizeof( s ), "%'d second%s", seconds, seconds==1?"":"s" );
    711711
    712712    if( days )
Note: See TracChangeset for help on using the changeset viewer.