public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/10] textual: use angular brackets around each individual argument
@ 2014-09-22 20:15 Benno Schulenberg
  2014-09-22 20:15 ` [PATCH 02/10] textual: "ambivalent" applies to intentions, "ambiguous" to results Benno Schulenberg
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: Benno Schulenberg @ 2014-09-22 20:15 UTC (permalink / raw)
  To: util-linux

In usage texts each word that is an argument should be marked
separately with angular brackets.  Also add a translator comment.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
---
 sys-utils/renice.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/sys-utils/renice.c b/sys-utils/renice.c
index 100f6a5..c96e39a 100644
--- a/sys-utils/renice.c
+++ b/sys-utils/renice.c
@@ -66,7 +66,7 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
 	fputs(_(" -n, --priority <num>   specify the nice increment value\n"), out);
 	fputs(_(" -p, --pid <id>         interpret argument as process ID (default)\n"), out);
 	fputs(_(" -g, --pgrp <id>        interpret argument as process group ID\n"), out);
-	fputs(_(" -u, --user <name|id>   interpret argument as username or user ID\n"), out);
+	fputs(_(" -u, --user <name>|<id> interpret argument as username or user ID\n"), out);
 	fputs(USAGE_SEPARATOR, out);
 	fputs(USAGE_HELP, out);
 	fputs(USAGE_VERSION, out);
@@ -176,6 +176,8 @@ int main(int argc, char **argv)
 		} else {
 			who = strtol(*argv, &endptr, 10);
 			if (who < 0 || *endptr) {
+				/* TRANSLATORS: The first %s is one of the above
+				 * three ID names. Read: "bad value for %s: %s" */
 				warnx(_("bad %s value: %s"), idtype[which], *argv);
 				errs = 1;
 				continue;
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-10-01  7:41 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-22 20:15 [PATCH 01/10] textual: use angular brackets around each individual argument Benno Schulenberg
2014-09-22 20:15 ` [PATCH 02/10] textual: "ambivalent" applies to intentions, "ambiguous" to results Benno Schulenberg
2014-09-22 20:15 ` [PATCH 03/10] textual: use a somewhat clearer and more standard failure message Benno Schulenberg
2014-09-22 20:15 ` [PATCH 04/10] textual: add a comma for clarity, plus some other tweaks Benno Schulenberg
2014-09-22 20:15 ` [PATCH 05/10] textual: not using angular brackets around literal arguments Benno Schulenberg
2014-09-22 20:15 ` [PATCH 06/10] textual: grammarize an error message Benno Schulenberg
2014-09-22 20:15 ` [PATCH 07/10] textual: using angular brackets around individual arguments Benno Schulenberg
2014-09-22 20:15 ` [PATCH 08/10] textual: grammarize another error message Benno Schulenberg
2014-09-22 20:15 ` [PATCH 09/10] textual: angular brackets around a non-literal argument, singular Benno Schulenberg
2014-09-22 20:15 ` [PATCH 10/10] textual: there may be no space between option and optional =arg Benno Schulenberg
2014-09-22 20:18 ` [PATCH 01/10] textual: use angular brackets around each individual argument Benno Schulenberg
2014-09-23 13:26   ` Sami Kerola
2014-09-23 16:25     ` Karel Zak
2014-10-01  7:41 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox