~ubuntu-branches/ubuntu/oneiric/gnome-disk-utility/oneiric

« back to all changes in this revision

Viewing changes to debian/patches/03_unit_fix.patch

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-07-11 16:00:45 UTC
  • mfrom: (1.1.13 upstream) (18.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20110711160045-jm2js0j2n6bm99ez
Tags: 3.0.2-1ubuntu1
* Resynchronize on Debian, see previous changelog entries for a summary
* Dropped patched included in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
5
 
 
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)
9
 
 
10
 
         switch (unit) {
11
 
         case GDU_UNIT_KB:
12
 
-                ret = _("KB");
13
 
+                ret = _("kB");
14
 
                 break;
15
 
         default:
16
 
                 g_warning ("Unknown unit %d", unit);
17
 
@@ -124,7 +124,7 @@ gdu_unit_guess (const gchar *str)
18
 
 
19
 
         ret = GDU_UNIT_NOT_SET;
20
 
 
21
 
-        if (strstr (str, "KB") != NULL) {
22
 
+        if (strstr (str, "kB") != NULL) {
23
 
                 ret = GDU_UNIT_KB;
24
 
         } else if (strstr (str, "MB") != NULL) {
25
 
                 ret = GDU_UNIT_MB;
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)
29
 
 
30
 
         if (size < MEGABYTE_FACTOR) {
31
 
                 displayed_size = (double) size / KILOBYTE_FACTOR;
32
 
-                unit = "KB";
33
 
+                unit = "kB";
34
 
         } else if (size < GIGABYTE_FACTOR) {
35
 
                 displayed_size = (double) size / MEGABYTE_FACTOR;
36
 
                 unit = "MB";
37
 
@@ -134,7 +134,7 @@ gdu_util_get_size_for_display (guint64 s
38
 
                         gchar *pow10_str;
39
 
                         pow10_str = get_pow10_size (size);
40
 
 
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'
44
 
                          */
45
 
                         str = g_strdup_printf (_("%s (%s bytes)"), pow10_str, size_str);
46
 
@@ -885,7 +885,7 @@ gdu_util_get_speed_for_display (guint64
47
 
 
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
58
 
 
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").
63
 
                  *
64
 
                  * See e.g. http://people.freedesktop.org/~david/gnome-loopback-2.png
65
 
                  */