diff options
author | Jim Meyering <jim@meyering.net> | 2002-06-25 08:21:07 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-06-25 08:21:07 +0000 |
commit | 6e78c788f0588fd7c0c4f557d274ef46ca9bad80 (patch) | |
tree | ee9fb736a643ac933fb01bb7696ea469c57f4348 /src | |
parent | 35f99d53476f9a147476d2084345f0fc5d32dad3 (diff) | |
download | coreutils-6e78c788f0588fd7c0c4f557d274ef46ca9bad80.tar.xz |
(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.
Diffstat (limited to 'src')
-rw-r--r-- | src/remove.c | 17 |
1 files 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; |