22 lines
1.2 KiB
Plaintext
22 lines
1.2 KiB
Plaintext
$OpenBSD: patch-gtk_stats_c,v 1.2 2008/07/09 19:43:42 naddy Exp $
|
|
--- gtk/stats.c.orig Sat Jun 14 00:00:43 2008
|
|
+++ gtk/stats.c Thu Jun 19 15:38:51 2008
|
|
@@ -65,7 +65,7 @@ updateStats( gpointer gdata )
|
|
setLabel( ui->one_time_lb, tr_strltime( buf, one.secondsActive, sizeof(buf) ) );
|
|
setLabelFromRatio( ui->one_ratio_lb, one.ratio );
|
|
|
|
- fmt = ngettext( "Started %'d time", "Started %'d times", (int)all.sessionCount );
|
|
+ fmt = ngettext( "Started %d time", "Started %d times", (int)all.sessionCount );
|
|
g_snprintf( buf, sizeof(buf), fmt, (int)all.sessionCount );
|
|
setLabel( ui->all_sessions_lb, buf );
|
|
setLabel( ui->all_up_lb, tr_strlsize( buf, all.uploadedBytes, sizeof(buf) ) );
|
|
@@ -131,7 +131,7 @@ stats_dialog_create( GtkWindow * parent, TrCore * core
|
|
hig_workarea_add_row( t, &row, _("Duration:"), l, NULL );
|
|
hig_workarea_add_section_divider( t, &row );
|
|
hig_workarea_add_section_title( t, &row, _("Total") );
|
|
- l = ui->all_sessions_lb = gtk_label_new( _("Started %'d time") );
|
|
+ l = ui->all_sessions_lb = gtk_label_new( _("Started %d time") );
|
|
hig_workarea_add_label_w( t, row++, l );
|
|
l = ui->all_up_lb = gtk_label_new( NULL );
|
|
hig_workarea_add_row( t, &row, _("Uploaded:"), l, NULL );
|