[mate-netspeed] 02/03: debian/patches: Add 0001_netspeed-units.patch. Fix displaying MB/s units. (Closes: #781488).
Mike Gabriel
sunweaver at debian.org
Tue Jul 21 00:14:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch debian/jessie/updates
in repository mate-netspeed.
commit a7dadedf105fdb8aeeda21d2a9d0fe6e15b5366e
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Jul 21 02:13:39 2015 +0200
debian/patches: Add 0001_netspeed-units.patch. Fix displaying MB/s units. (Closes: #781488).
---
debian/patches/0001_netspeed-units.patch | 34 ++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 35 insertions(+)
diff --git a/debian/patches/0001_netspeed-units.patch b/debian/patches/0001_netspeed-units.patch
new file mode 100644
index 0000000..3e19fe6
--- /dev/null
+++ b/debian/patches/0001_netspeed-units.patch
@@ -0,0 +1,34 @@
+Description: Use uppercase prefix for kilo- and mega-
+
+ Using 'mb/s' is confusing - user can thought it means 'millibit'. Since
+ we have a 'full notation', it is possible to use 'b' for bits and 'B'
+ for bytes. Let's use uppercase letter for prefix in this notation.
+
+ See also: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781488
+ .
+ mate-netspeed (1.8.0+dfsg1-2) unstable; urgency=low
+ .
+ * debian/rules:
+ + Enable parallel builds.
+ + Turn on compiler commands during package build (configure option:
+ --disable-silent-rules).
+Author: Boris Egorov <egorov at linux.com>
+Bug-Debian: https://bugs.debian.org/781488
+Bug: https://github.com/mate-desktop/mate-netspeed/pull/28
+---
+
+--- mate-netspeed-1.8.0+dfsg1.orig/src/netspeed.c
++++ mate-netspeed-1.8.0+dfsg1/src/netspeed.c
+@@ -444,10 +444,10 @@ bytes_to_string(double bytes, gboolean p
+ if (shortened) {
+ unit = bits ? /* translators: megabits (short) */ N_("m") : /* translators: Megabytes (short) */ N_("M");
+ } else {
+- unit = bits ? N_("mb/s") : N_("MiB/s");
++ unit = bits ? N_("Mb/s") : N_("MiB/s");
+ }
+ else
+- unit = bits ? N_("mb") : N_("MiB");
++ unit = bits ? N_("Mb") : N_("MiB");
+ }
+
+ return g_strdup_printf(format, bytes, gettext(unit));
\ No newline at end of file
diff --git a/debian/patches/series b/debian/patches/series
index 83b110e..0564cce 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+0001_netspeed-units.patch
2001_omit-gfdl-licensed-help-files.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-netspeed.git
More information about the pkg-mate-commits
mailing list