diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-01-04 17:16:42 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-01-04 17:16:42 +0000 |
commit | d56fde2d16113fa30b68379d40c4087cf2fd84e5 (patch) | |
tree | 1a1d1a4d5c84342ba9dd05026f6e22dc7a869602 /dotlock | |
parent | bd178bb676dcbb88aacd25293ebb7c098be98a31 (diff) | |
download | mailutils-d56fde2d16113fa30b68379d40c4087cf2fd84e5.tar.gz mailutils-d56fde2d16113fa30b68379d40c4087cf2fd84e5.tar.bz2 |
Revise error messages for accordance with GNU standards:
begin messages with a capital letter, unless they are prefixed
with `file:line:' or their exact look is important due to
compatibility reasons. Do not end messages with a period.
Avoid using contracted negations.
Diffstat (limited to 'dotlock')
-rw-r--r-- | dotlock/dotlock.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/dotlock/dotlock.c b/dotlock/dotlock.c index 98b052baf..40f0d5281 100644 --- a/dotlock/dotlock.c +++ b/dotlock/dotlock.c @@ -54,9 +54,6 @@ static struct argp_option options[] = { {"debug", 'd', NULL, 0, N_("Print details of failure reasons to stderr"), 0}, - {"test", 'T', N_("PROGRAM"), OPTION_HIDDEN, - N_("Test external dotlocker"), 0}, - {NULL, 0, NULL, 0, NULL, 0} }; @@ -112,7 +109,7 @@ parse_opt (int key, char *arg, struct argp_state *state) case ARGP_KEY_ARG: if (file) - argp_error (state, _("only one FILE can be specified")); + argp_error (state, _("Only one FILE can be specified")); file = arg; break; @@ -148,7 +145,7 @@ main (int argc, char *argv[]) if ((err = locker_create (&locker, file, flags))) { if (debug) - fprintf (stderr, _("locker create failed: %s\n"), mu_strerror (err)); + fprintf (stderr, _("Creating locker failed: %s\n"), mu_strerror (err)); return MU_DL_EX_ERROR; } @@ -174,8 +171,8 @@ main (int argc, char *argv[]) if (debug && err) fprintf (stderr, - unlock ? _("unlocking the file %s failed: %s\n") : - _("locking the file %s failed: %s\n"), + unlock ? _("Unlocking the file %s failed: %s\n") : + _("Locking the file %s failed: %s\n"), file, mu_strerror (err)); switch (err) |