From: Jim Meyering Date: Tue, 25 Jun 2002 08:21:07 +0000 (+0000) Subject: (prompt): Add a comment to help translators work X-Git-Tag: FILEUTILS-4_1_9~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e78c788f0588fd7c0c4f557d274ef46ca9bad80;p=thirdparty%2Fcoreutils.git (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. --- diff --git a/src/remove.c b/src/remove.c index 6fc8a1dc22..b90055c194 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;