]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
wdctl: pluralize one thrice-repeated message
authorBenno Schulenberg <bensberg@justemail.net>
Sat, 5 Oct 2013 21:19:55 +0000 (23:19 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Oct 2013 13:27:36 +0000 (15:27 +0200)
Also put in one hard space, to keep text and number separated when
the translated string should be too long.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
sys-utils/wdctl.c

index 71309188e7f61d0318041f894e673351101a5cea..c0953c9c8c0926c94849c6b9bc1f17dc6440877f 100644 (file)
@@ -450,11 +450,14 @@ static void print_oneline(struct wdinfo *wd, uint32_t wanted,
 static void show_timeouts(struct wdinfo *wd)
 {
        if (wd->has_timeout)
-               printf(_("%-15s%2i seconds\n"), _("Timeout:"), wd->timeout);
+               printf(P_("%-14s %2i second\n", "%-14s %2i seconds\n", wd->timeout),
+                         _("Timeout:"), wd->timeout);
        if (wd->has_pretimeout)
-               printf(_("%-15s%2i seconds\n"), _("Pre-timeout:"), wd->pretimeout);
+               printf(P_("%-14s %2i second\n", "%-14s %2i seconds\n", wd->pretimeout),
+                         _("Pre-timeout:"), wd->pretimeout);
        if (wd->has_timeleft)
-               printf(_("%-15s%2i seconds\n"), _("Timeleft:"), wd->timeleft);
+               printf(P_("%-14s %2i second\n", "%-14s %2i seconds\n", wd->timeleft),
+                         _("Timeleft:"), wd->timeleft);
 }
 
 int main(int argc, char *argv[])