Changeset 5223
- Timestamp:
- Mar 7, 2008, 9:59:27 PM (14 years ago)
- Location:
- trunk/gtk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gtk/details.c
r5222 r5223 787 787 g_free (pch); 788 788 789 pch = g_strdup_printf( _( "%.1f%% (%.1f%% selected)" ), stat->percentComplete*100.0, stat->percentDone*100.0 ); 789 /* Translators: %1$.1f is percent of how much of what we want has been downloaded, 790 %2$.1f is percent of how much of the whole torrent we've downloaded */ 791 pch = g_strdup_printf( _( "%1$.1f%% (%2$.1f%% selected)" ), stat->percentComplete*100.0, stat->percentDone*100.0 ); 790 792 gtk_label_set_text (GTK_LABEL(a->progress_lb), pch); 791 793 g_free (pch); … … 793 795 tr_strlsize( sizeStr, stat->haveValid + stat->haveUnchecked, sizeof(sizeStr) ); 794 796 tr_strlsize( sizeStr2, stat->haveValid, sizeof(sizeStr2) ); 795 g_snprintf( buf, sizeof(buf), _("%s (%s verified)"), sizeStr, sizeStr2 ); 797 /* Translators: %1$s is total size of what we've saved to disk, %2$s is how much of it's passed the checksum test */ 798 g_snprintf( buf, sizeof(buf), _("%1$s (%2$s verified)"), sizeStr, sizeStr2 ); 796 799 gtk_label_set_text( GTK_LABEL( a->have_lb ), buf ); 797 800 … … 1235 1238 /* create the dialog */ 1236 1239 tr_strlsize( sizeStr, info->totalSize, sizeof(sizeStr) ); 1237 /* Translators: first %s is torrent name, secondis file size */1238 g_snprintf( title, sizeof(title), _( "Details for % s (%s)" ), info->name, sizeStr );1240 /* Translators: %1$s is torrent name, %2$s is file size */ 1241 g_snprintf( title, sizeof(title), _( "Details for %1$s (%2$s)" ), info->name, sizeStr ); 1239 1242 d = gtk_dialog_new_with_buttons (title, parent, 0, 1240 1243 GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, -
trunk/gtk/main.c
r5221 r5223 760 760 joined = joinstrlist( cbdata->errqueue, "\n" ); 761 761 errmsg( cbdata->wind, 762 ngettext( "Failed to load torrent file: \n%s",763 "Failed to load torrent files: \n%s",762 ngettext( "Failed to load torrent file: %s", 763 "Failed to load torrent files: %s", 764 764 g_list_length( cbdata->errqueue ) ), 765 765 joined ); -
trunk/gtk/torrent-cell-renderer.c
r5208 r5223 48 48 if( !isDone ) 49 49 str = g_strdup_printf( 50 _("%s of %s (%.2f%%)"), 50 /* Translators: %1$s is how much we've got, %2$s is how much we'll have when done, %3$.2f%% is a percentage of the two */ 51 _("%1$s of %2$s (%3$.2f%%)"), 51 52 tr_strlsize( buf1, haveTotal, sizeof(buf1) ), 52 53 tr_strlsize( buf2, torStat->desiredSize, sizeof(buf2) ), … … 54 55 else if( !isSeed ) 55 56 str = g_strdup_printf( 56 _("%s of %s (%.2f%%), uploaded %s (Ratio: %s)"), 57 /* Translators: %1$s is how much we've got, %2$s is the torrent's total size, %3$.2f%% is a percentage of the two, 58 %4$s is how much we've uploaded, %5$s is our upload-to-download ratio */ 59 _("%1$s of %2$s (%3$.2f%%), uploaded %4$s (Ratio: %5$s)"), 57 60 tr_strlsize( buf1, haveTotal, sizeof(buf1) ), 58 61 tr_strlsize( buf2, info->totalSize, sizeof(buf2) ), … … 62 65 else 63 66 str = g_strdup_printf( 64 _("%s, uploaded %s (Ratio: %s)"), 67 /* Translators: %1$s is the torrent's total size, %2$s is how much we've uploaded, 68 %3$s is our upload-to-download ratio */ 69 _("%1$s, uploaded %2$s (Ratio: %3$s)"), 65 70 tr_strlsize( buf1, info->totalSize, sizeof(buf1) ), 66 71 tr_strlsize( buf2, torStat->uploadedEver, sizeof(buf2) ), … … 100 105 101 106 if( haveDown && haveUp ) 102 g_snprintf( buf, buflen, _( "Down: %s, Up: %s"), downStr, upStr ); 107 /* Translators: %1$s is download speed, %2$s is upload speed */ 108 g_snprintf( buf, buflen, _( "Down: %1$s, Up: %2$s"), downStr, upStr ); 103 109 else if( haveDown ) 110 /* Translators: this refers to download speed */ 104 111 g_snprintf( buf, buflen, _( "Down: %s" ), downStr ); 105 112 else if( haveUp ) 113 /* Translators: this refers to upload speed */ 106 114 g_snprintf( buf, buflen, _( "Up: %s" ), upStr ); 107 115 else 116 /* Translators: the torrent isn't uploading or downloading */ 108 117 g_strlcpy( buf, _( "Idle" ), buflen ); 109 118 … … 137 146 if( torStat->status != TR_STATUS_DOWNLOAD ) { 138 147 tr_strlratio( buf, torStat->ratio, sizeof( buf ) ); 139 g_string_append_printf( gstr, _("Ratio: %s, " ), buf ); 148 g_string_append_printf( gstr, _("Ratio: %s" ), buf ); 149 g_string_append( gstr, ", " ); 140 150 } 141 151 getShortTransferString( torStat, buf, sizeof( buf ) ); … … 177 187 case TR_STATUS_DOWNLOAD: 178 188 g_string_append_printf( gstr, 179 ngettext( "Downloading from % d of %d connected peer",180 "Downloading from % d of %d connected peers",189 ngettext( "Downloading from %1$d of %2$d connected peer", 190 "Downloading from %1$d of %2$d connected peers", 181 191 torStat->peersConnected ), 182 192 torStat->peersSendingToUs, … … 187 197 case TR_STATUS_SEED: 188 198 g_string_append_printf( gstr, 189 ngettext( "Seeding to % d of %d connected peer",190 "Seeding to % d of %d connected peers",199 ngettext( "Seeding to %1$d of %2$d connected peer", 200 "Seeding to %1$d of %2$d connected peers", 191 201 torStat->peersConnected ), 192 202 torStat->peersGettingFromUs, -
trunk/gtk/tr-icon.c
r5122 r5223 76 76 tr_strlspeed( upStr, stats->clientUploadSpeed, sizeof( upStr ) ); 77 77 g_snprintf( tip, sizeof( tip ), 78 _( "%d Seeding, %d Downloading\nDown: %s, Up: %s" ), 78 /* Translators: %1$d is the number of torrents we're seeding, 79 %2$d is the number of torrents we're downloading, 80 %3$s is our download speed, 81 %4$s is our upload speed */ 82 _( "%1$d Seeding, %2$d Downloading\nDown: %3$s, Up: %4$s" ), 79 83 stats->seedingCount, 80 84 stats->downloadCount, -
trunk/gtk/tr-window.c
r5222 r5223 633 633 tr_strlsize( up, stats.uploadedBytes, sizeof( up ) ); 634 634 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 ); 636 637 } else if( !strcmp( pch, "total-transfer" ) ) { 637 638 tr_getCumulativeSessionStats( handle, &stats ); 638 639 tr_strlsize( up, stats.uploadedBytes, sizeof( up ) ); 639 640 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 ); 641 643 } else { /* default is total-ratio */ 642 644 tr_getCumulativeSessionStats( handle, &stats );
Note: See TracChangeset
for help on using the changeset viewer.