summaryrefslogtreecommitdiff
path: root/src/trg-client.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-02 14:14:41 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-02 14:14:41 +0000
commitcd3800287297bdcd9fb8c90ee01a2414be3b9312 (patch)
tree93c4718a5f8dab79f9fd3c0af22c7ab1fc892a26 /src/trg-client.c
parent8259ceddd02f76a337bb7037cdf5b86872ad09c6 (diff)
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.
Diffstat (limited to 'src/trg-client.c')
-rw-r--r--src/trg-client.c5
1 files changed, 5 insertions, 0 deletions
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 <string.h>
#include <glib.h>
#include <glib/gprintf.h>
+#include <glib/gi18n.h>
#ifdef HAVE_LIBPROXY
#include <proxy.h>
@@ -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;
}