Changeset 5223 for trunk/gtk/tr-window.c


Ignore:
Timestamp:
Mar 7, 2008, 9:59:27 PM (14 years ago)
Author:
charles
Message:

(gtk) more i18n string work w/suggestions from andre and vuntz to use format strings with positions to allow argument reordering.

File:
1 edited

Legend:

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

    r5222 r5223  
    633633        tr_strlsize( up, stats.uploadedBytes, sizeof( up ) );
    634634        tr_strlsize( down, stats.downloadedBytes, sizeof( down ) );
    635         g_snprintf( buf, sizeof( buf ), _( "Down: %s, Up: %s" ), down, up );
     635        /* Translators: %1$s is downloaded byte count, %2$s is uploaded byte count*/
     636        g_snprintf( buf, sizeof( buf ), _( "Down: %1$s, Up: %2$s" ), down, up );
    636637    } else if( !strcmp( pch, "total-transfer" ) ) {
    637638        tr_getCumulativeSessionStats( handle, &stats );
    638639        tr_strlsize( up, stats.uploadedBytes, sizeof( up ) );
    639640        tr_strlsize( down, stats.downloadedBytes, sizeof( down ) );
    640         g_snprintf( buf, sizeof( buf ), _( "Down: %s, Up: %s" ), down, up );
     641        /* Translators: %1$s is downloaded byte count, %2$s is uploaded byte count*/
     642        g_snprintf( buf, sizeof( buf ), _( "Down: %1$s, Up: %2$s" ), down, up );
    641643    } else { /* default is total-ratio */
    642644        tr_getCumulativeSessionStats( handle, &stats );
Note: See TracChangeset for help on using the changeset viewer.