[gnome-disk-utility] Bug 612872 — wrong base-10 prefix KB (correct is kB)
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Bug 612872 — wrong base-10 prefix KB (correct is kB)
- Date: Mon, 16 May 2011 15:07:05 +0000 (UTC)
commit 9e064b6e4c058f83ace597528df4197980380ce6
Author: Benjamin Drung <bdrung ubuntu com>
Date: Mon May 16 16:55:01 2011 +0200
Bug 612872 â?? wrong base-10 prefix KB (correct is kB)
src/gdu-gtk/gdu-size-widget.c | 4 ++--
src/gdu/gdu-drive.c | 2 +-
src/gdu/gdu-util.c | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/gdu-gtk/gdu-size-widget.c b/src/gdu-gtk/gdu-size-widget.c
index 4dd6a8f..8370926 100644
--- a/src/gdu-gtk/gdu-size-widget.c
+++ b/src/gdu-gtk/gdu-size-widget.c
@@ -86,7 +86,7 @@ gdu_unit_get_name (GduUnit unit)
switch (unit) {
case GDU_UNIT_KB:
- ret = _("KB");
+ ret = _("kB");
break;
default:
g_warning ("Unknown unit %d", unit);
@@ -124,7 +124,7 @@ gdu_unit_guess (const gchar *str)
ret = GDU_UNIT_NOT_SET;
- if (strstr (str, "KB") != NULL) {
+ if (strstr (str, "kB") != NULL) {
ret = GDU_UNIT_KB;
} else if (strstr (str, "MB") != NULL) {
ret = GDU_UNIT_MB;
diff --git a/src/gdu/gdu-drive.c b/src/gdu/gdu-drive.c
index 08af514..fe48299 100644
--- a/src/gdu/gdu-drive.c
+++ b/src/gdu/gdu-drive.c
@@ -682,7 +682,7 @@ gdu_drive_get_name (GduPresentable *presentable)
if (gdu_device_is_linux_loop (drive->priv->device)) {
/* Translators: This is the name of a "Drive" backed by a file.
- * The %s is the size of the file (e.g. "42 GB" or "5 KB").
+ * The %s is the size of the file (e.g. "42 GB" or "5 kB").
*
* See e.g. http://people.freedesktop.org/~david/gnome-loopback-2.png
*/
diff --git a/src/gdu/gdu-util.c b/src/gdu/gdu-util.c
index 1c02731..e27c331 100644
--- a/src/gdu/gdu-util.c
+++ b/src/gdu/gdu-util.c
@@ -86,7 +86,7 @@ get_pow10_size (guint64 size)
if (size < MEGABYTE_FACTOR) {
displayed_size = (double) size / KILOBYTE_FACTOR;
- unit = "KB";
+ unit = "kB";
} else if (size < GIGABYTE_FACTOR) {
displayed_size = (double) size / MEGABYTE_FACTOR;
unit = "MB";
@@ -134,7 +134,7 @@ gdu_util_get_size_for_display (guint64 size,
gchar *pow10_str;
pow10_str = get_pow10_size (size);
- /* Translators: The first %s is the size in power-of-10 units, e.g. '100 KB'
+ /* Translators: The first %s is the size in power-of-10 units, e.g. '100 kB'
* the second %s is the size as a number e.g. '100,000 bytes'
*/
str = g_strdup_printf (_("%s (%s bytes)"), pow10_str, size_str);
@@ -885,7 +885,7 @@ gdu_util_get_speed_for_display (guint64 speed)
if (speed < 1000 * 1000) {
displayed_speed = (double) speed / 1000.0;
- str = g_strdup_printf (_("%.1f KB/s"), displayed_speed);
+ str = g_strdup_printf (_("%.1f kB/s"), displayed_speed);
} else if (speed < 1000 * 1000 * 1000) {
displayed_speed = (double) speed / 1000.0 / 1000.0;
str = g_strdup_printf (_("%.1f MB/s"), displayed_speed);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]