Skip to content

Commit

Permalink
Merge pull request #28 from JIghtuse/master
Browse files Browse the repository at this point in the history
Use uppercase prefix for kilo- and mega-
  • Loading branch information
monsta committed Jun 5, 2015
2 parents 4adf894 + 919d640 commit 413db8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/netspeed.c
Expand Up @@ -440,10 +440,10 @@ bytes_to_string(double bytes, gboolean per_sec, gboolean bits, gboolean shortene
if (shortened) {
unit = bits ? /* translators: kilobits (short) */ N_("k") : /* translators: Kilobytes (short) */ N_("K");
} else {
unit = bits ? N_("kb/s") : N_("KiB/s");
unit = bits ? N_("Kb/s") : N_("KiB/s");
}
else
unit = bits ? N_("kb") : N_("KiB");
unit = bits ? N_("Kb") : N_("KiB");

} else {

Expand All @@ -455,10 +455,10 @@ bytes_to_string(double bytes, gboolean per_sec, gboolean bits, gboolean shortene
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));
Expand Down

0 comments on commit 413db8f

Please sign in to comment.