From 6e78c788f0588fd7c0c4f557d274ef46ca9bad80 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 25 Jun 2002 08:21:07 +0000 Subject: (prompt): Add a comment to help translators work around the problem of making the translations of the adjective `write-protected' and the corresponding run-time-variable noun (e.g., file, directory, symlink, etc.) consistent. From Paul Eggert. --- src/remove.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/remove.c b/src/remove.c index 6fc8a1dc2..b90055c19 100644 --- a/src/remove.c +++ b/src/remove.c @@ -598,11 +598,18 @@ prompt (char const *filename, struct rm_options const *x, : _("%s: descend into directory %s? ")), program_name, quoted_name); else - fprintf (stderr, - (write_protected - ? _("%s: remove write-protected %s %s? ") - : _("%s: remove %s %s? ")), - program_name, file_type (&sbuf), quoted_name); + { + /* TRANSLATORS: You may find it more convenient to translate + the equivalent of _("%1$s: %3$s is write-protected and is + of type `%2$s'. Remove it? "). This is more verbose than + the original but it should avoid grammatical problems with + the output of file_type. */ + fprintf (stderr, + (write_protected + ? _("%s: remove write-protected %s %s? ") + : _("%s: remove %s %s? ")), + program_name, file_type (&sbuf), quoted_name); + } if (!yesno ()) return RM_USER_DECLINED; -- cgit v1.2.3-54-g00ecf