From cd3800287297bdcd9fb8c90ee01a2414be3b9312 Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Mon, 2 Jan 2012 14:14:41 +0000 Subject: change units to the IEC standard (and the Ubuntu units policy) for base2 (/1024) - KiB/GiB etc. this is instead of KB/s etc which Windows and many other apps use for base2. I've tried to fix up the translations as best as I can. --- src/trg-client.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/trg-client.c') diff --git a/src/trg-client.c b/src/trg-client.c index 5304a81..ff5eb2a 100644 --- a/src/trg-client.c +++ b/src/trg-client.c @@ -23,6 +23,7 @@ #include #include #include +#include #ifdef HAVE_LIBPROXY #include @@ -156,6 +157,10 @@ TrgClient *trg_client_new(void) priv->pool = g_thread_pool_new((GFunc) dispatch_async_threadfunc, tc, DISPATCH_POOL_SIZE, TRUE, NULL); + tr_formatter_size_init( disk_K, _(disk_K_str), _(disk_M_str), _(disk_G_str), _(disk_T_str) ); + tr_formatter_speed_init( speed_K, _(speed_K_str), _(speed_M_str), _(speed_G_str), _(speed_T_str) ); + + return tc; } -- cgit v1.2.3