openbsd-ports/net/transmission/patches/patch-gtk_util_c
2009-09-06 15:03:18 +00:00

71 lines
3.1 KiB
Plaintext

$OpenBSD: patch-gtk_util_c,v 1.7 2009/09/06 15:03:18 naddy Exp $
--- gtk/util.c.orig Wed Aug 19 03:02:44 2009
+++ gtk/util.c Thu Aug 20 19:50:22 2009
@@ -117,7 +117,7 @@ tr_strlsize( char * buf,
#else
else if( size < (guint64)KILOBYTE_FACTOR )
g_snprintf( buf, buflen,
- ngettext( "%'u byte", "%'u bytes",
+ ngettext( "%u byte", "%u bytes",
(guint)size ), (guint)size );
else
{
@@ -125,17 +125,17 @@ tr_strlsize( char * buf,
if( size < (guint64)MEGABYTE_FACTOR )
{
displayed_size = (gdouble) size / KILOBYTE_FACTOR;
- g_snprintf( buf, buflen, _( "%'.1f KB" ), displayed_size );
+ g_snprintf( buf, buflen, _( "%.1f KB" ), displayed_size );
}
else if( size < (guint64)GIGABYTE_FACTOR )
{
displayed_size = (gdouble) size / MEGABYTE_FACTOR;
- g_snprintf( buf, buflen, _( "%'.1f MB" ), displayed_size );
+ g_snprintf( buf, buflen, _( "%.1f MB" ), displayed_size );
}
else
{
displayed_size = (gdouble) size / GIGABYTE_FACTOR;
- g_snprintf( buf, buflen, _( "%'.1f GB" ), displayed_size );
+ g_snprintf( buf, buflen, _( "%.1f GB" ), displayed_size );
}
}
#endif
@@ -150,13 +150,13 @@ tr_strlspeed( char * buf,
const double speed = kb_sec;
if( speed < 1000.0 ) /* 0.0 KB to 999.9 KB */
- g_snprintf( buf, buflen, _( "%'.1f KB/s" ), speed );
+ g_snprintf( buf, buflen, _( "%.1f KB/s" ), speed );
else if( speed < 102400.0 ) /* 0.98 MB to 99.99 MB */
- g_snprintf( buf, buflen, _( "%'.2f MB/s" ), ( speed / KILOBYTE_FACTOR ) );
+ g_snprintf( buf, buflen, _( "%.2f MB/s" ), ( speed / KILOBYTE_FACTOR ) );
else if( speed < 1024000.0 ) /* 100.0 MB to 999.9 MB */
- g_snprintf( buf, buflen, _( "%'.1f MB/s" ), ( speed / MEGABYTE_FACTOR ) );
+ g_snprintf( buf, buflen, _( "%.1f MB/s" ), ( speed / MEGABYTE_FACTOR ) );
else /* insane speeds */
- g_snprintf( buf, buflen, _( "%'.2f GB/s" ), ( speed / GIGABYTE_FACTOR ) );
+ g_snprintf( buf, buflen, _( "%.2f GB/s" ), ( speed / GIGABYTE_FACTOR ) );
return buf;
}
@@ -177,14 +177,14 @@ tr_strltime( char * buf,
minutes = ( seconds % 3600 ) / 60;
seconds = ( seconds % 3600 ) % 60;
- g_snprintf( d, sizeof( d ), ngettext( "%'d day", "%'d days",
+ g_snprintf( d, sizeof( d ), ngettext( "%d day", "%d days",
days ), days );
- g_snprintf( h, sizeof( h ), ngettext( "%'d hour", "%'d hours",
+ g_snprintf( h, sizeof( h ), ngettext( "%d hour", "%d hours",
hours ), hours );
g_snprintf( m, sizeof( m ),
- ngettext( "%'d minute", "%'d minutes", minutes ), minutes );
+ ngettext( "%d minute", "%d minutes", minutes ), minutes );
g_snprintf( s, sizeof( s ),
- ngettext( "%'d second", "%'d seconds", seconds ), seconds );
+ ngettext( "%d second", "%d seconds", seconds ), seconds );
if( days )
{