1
Description: Correct base-10 prefix from KB to kB.
2
Author: Benjamin Drung <bdrung@ubuntu.com>
3
Bug-Ubuntu: https://launchpad.net/bugs/538732
4
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=612872
6
--- gnome-disk-utility-2.32.1.orig/src/gdu-gtk/gdu-size-widget.c
7
+++ gnome-disk-utility-2.32.1/src/gdu-gtk/gdu-size-widget.c
8
@@ -86,7 +86,7 @@ gdu_unit_get_name (GduUnit unit)
16
g_warning ("Unknown unit %d", unit);
17
@@ -124,7 +124,7 @@ gdu_unit_guess (const gchar *str)
19
ret = GDU_UNIT_NOT_SET;
21
- if (strstr (str, "KB") != NULL) {
22
+ if (strstr (str, "kB") != NULL) {
24
} else if (strstr (str, "MB") != NULL) {
26
--- gnome-disk-utility-2.32.1.orig/src/gdu/gdu-util.c
27
+++ gnome-disk-utility-2.32.1/src/gdu/gdu-util.c
28
@@ -86,7 +86,7 @@ get_pow10_size (guint64 size)
30
if (size < MEGABYTE_FACTOR) {
31
displayed_size = (double) size / KILOBYTE_FACTOR;
34
} else if (size < GIGABYTE_FACTOR) {
35
displayed_size = (double) size / MEGABYTE_FACTOR;
37
@@ -134,7 +134,7 @@ gdu_util_get_size_for_display (guint64 s
39
pow10_str = get_pow10_size (size);
41
- /* Translators: The first %s is the size in power-of-10 units, e.g. '100 KB'
42
+ /* Translators: The first %s is the size in power-of-10 units, e.g. '100 kB'
43
* the second %s is the size as a number e.g. '100,000 bytes'
45
str = g_strdup_printf (_("%s (%s bytes)"), pow10_str, size_str);
46
@@ -885,7 +885,7 @@ gdu_util_get_speed_for_display (guint64
48
if (speed < 1000 * 1000) {
49
displayed_speed = (double) speed / 1000.0;
50
- str = g_strdup_printf (_("%.1f KB/s"), displayed_speed);
51
+ str = g_strdup_printf (_("%.1f kB/s"), displayed_speed);
52
} else if (speed < 1000 * 1000 * 1000) {
53
displayed_speed = (double) speed / 1000.0 / 1000.0;
54
str = g_strdup_printf (_("%.1f MB/s"), displayed_speed);
55
--- gnome-disk-utility-2.32.1.orig/src/gdu/gdu-drive.c
56
+++ gnome-disk-utility-2.32.1/src/gdu/gdu-drive.c
57
@@ -682,7 +682,7 @@ gdu_drive_get_name (GduPresentable *pres
59
if (gdu_device_is_linux_loop (drive->priv->device)) {
60
/* Translators: This is the name of a "Drive" backed by a file.
61
- * The %s is the size of the file (e.g. "42 GB" or "5 KB").
62
+ * The %s is the size of the file (e.g. "42 GB" or "5 kB").
64
* See e.g. http://people.freedesktop.org/~david/gnome-loopback-2.png