From ce0e6110b65cfb8047b586737173abd1d3443aad Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 5 Oct 2013 23:19:55 +0200 Subject: wdctl: pluralize one thrice-repeated message 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 --- sys-utils/wdctl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sys-utils/wdctl.c') diff --git a/sys-utils/wdctl.c b/sys-utils/wdctl.c index 71309188e..c0953c9c8 100644 --- a/sys-utils/wdctl.c +++ b/sys-utils/wdctl.c @@ -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[]) -- cgit v1.2.3-55-g7522