Commit f767ae41 f767ae4103253efd31b6c2da01aca696402f8f46 by Sergey Poznyakoff

Added missing N_() markers.

1 parent d7fe456f
...@@ -55,7 +55,7 @@ static char doc[] = "GNU comsatd"; ...@@ -55,7 +55,7 @@ static char doc[] = "GNU comsatd";
55 55
56 static struct argp_option options[] = 56 static struct argp_option options[] =
57 { 57 {
58 {"config", 'c', "FILE", 0, N_("Read configuration from FILE"), 0}, 58 {"config", 'c', N_("FILE"), 0, N_("Read configuration from FILE"), 0},
59 { NULL, 0, NULL, 0, NULL, 0 } 59 { NULL, 0, NULL, 0, NULL, 0 }
60 }; 60 };
61 61
......
...@@ -44,16 +44,16 @@ static struct argp_option options[] = { ...@@ -44,16 +44,16 @@ static struct argp_option options[] = {
44 {"unlock", 'u', NULL, 0, 44 {"unlock", 'u', NULL, 0,
45 N_("Unlock"), 0}, 45 N_("Unlock"), 0},
46 46
47 {"force", 'f', "MINUTES", OPTION_ARG_OPTIONAL, 47 {"force", 'f', N_("MINUTES"), OPTION_ARG_OPTIONAL,
48 N_("Forcibly break an existing lock older than a certain time"), 0}, 48 N_("Forcibly break an existing lock older than a certain time"), 0},
49 49
50 {"retry", 'r', "RETRIES", OPTION_ARG_OPTIONAL, 50 {"retry", 'r', N_("RETRIES"), OPTION_ARG_OPTIONAL,
51 N_("Retry the lock a few times"), 0}, 51 N_("Retry the lock a few times"), 0},
52 52
53 {"debug", 'd', NULL, 0, 53 {"debug", 'd', NULL, 0,
54 N_("Print details of failure reasons to stderr"), 0}, 54 N_("Print details of failure reasons to stderr"), 0},
55 55
56 {"test", 'T', "PROGRAM", OPTION_HIDDEN, 56 {"test", 'T', N_("PROGRAM"), OPTION_HIDDEN,
57 N_("Test external dotlocker"), 0}, 57 N_("Test external dotlocker"), 0},
58 58
59 {NULL, 0, NULL, 0, NULL, 0} 59 {NULL, 0, NULL, 0, NULL, 0}
......
...@@ -65,7 +65,7 @@ static char doc[] = N_("GNU frm -- display From: lines"); ...@@ -65,7 +65,7 @@ static char doc[] = N_("GNU frm -- display From: lines");
65 65
66 static struct argp_option options[] = { 66 static struct argp_option options[] = {
67 {"debug", 'd', NULL, 0, N_("Enable debugging output"), 0}, 67 {"debug", 'd', NULL, 0, N_("Enable debugging output"), 0},
68 {"field", 'f', "NAME", 0, N_("Header field to display"), 0}, 68 {"field", 'f', N_("NAME"), 0, N_("Header field to display"), 0},
69 {"to", 'l', NULL, 0, N_("Include the To: information"), 0}, 69 {"to", 'l', NULL, 0, N_("Include the To: information"), 0},
70 {"number", 'n', NULL, 0, N_("Display message numbers"), 0}, 70 {"number", 'n', NULL, 0, N_("Display message numbers"), 0},
71 {"Quiet", 'Q', NULL, 0, N_("Very quiet"), 0}, 71 {"Quiet", 'Q', NULL, 0, N_("Very quiet"), 0},
......
...@@ -53,20 +53,20 @@ static struct argp_option options[] = { ...@@ -53,20 +53,20 @@ static struct argp_option options[] = {
53 {NULL, 0, NULL, 0, 53 {NULL, 0, NULL, 0,
54 N_("The following switches stop argument processing, and pass all\n" 54 N_("The following switches stop argument processing, and pass all\n"
55 "remaining arguments as the value of (command-line):"), 1}, 55 "remaining arguments as the value of (command-line):"), 1},
56 {"code", 'c', "EXPR", 0, N_("Execute given scheme expression."), 1}, 56 {"code", 'c', N_("EXPR"), 0, N_("Execute given scheme expression."), 1},
57 {"source", 's', "PROGFILE", 0, 57 {"source", 's', N_("PROGFILE"), 0,
58 N_("Load Scheme source code from PROGFILE, and exit"), 1}, 58 N_("Load Scheme source code from PROGFILE, and exit"), 1},
59 {NULL, 0, NULL, 0, 59 {NULL, 0, NULL, 0,
60 N_("The following options do not change the order of options parsing:"), 2}, 60 N_("The following options do not change the order of options parsing:"), 2},
61 {"expression", 'e', "EXPR", 0, N_("Execute given scheme expression."), 2}, 61 {"expression", 'e', N_("EXPR"), 0, N_("Execute given scheme expression."), 2},
62 {"file", 'f', "PROGFILE", 0, 62 {"file", 'f', N_("PROGFILE"), 0,
63 N_("Load Scheme source code from PROGFILE, and exit"), 2}, 63 N_("Load Scheme source code from PROGFILE, and exit"), 2},
64 {NULL, 0, NULL, 0, N_("Other options:"), 3}, 64 {NULL, 0, NULL, 0, N_("Other options:"), 3},
65 {"debug", 'd', NULL, 0, N_("Start with debugging evaluator and backtraces."), 3}, 65 {"debug", 'd', NULL, 0, N_("Start with debugging evaluator and backtraces."), 3},
66 {"guile-arg", 'g', "ARG", 0, 66 {"guile-arg", 'g', N_("ARG"), 0,
67 N_("Append ARG to the command line passed to Guile"), 3}, 67 N_("Append ARG to the command line passed to Guile"), 3},
68 {"mailbox", 'M', "NAME", 0, N_("Set default mailbox name"), 3}, 68 {"mailbox", 'M', N_("NAME"), 0, N_("Set default mailbox name"), 3},
69 {"user", 'u', "NAME", OPTION_ARG_OPTIONAL, 69 {"user", 'u', N_("NAME"), OPTION_ARG_OPTIONAL,
70 N_("Act as local MDA for user NAME"), 3}, 70 N_("Act as local MDA for user NAME"), 3},
71 {0, 0, 0, 0} 71 {0, 0, 0, 0}
72 }; 72 };
......
...@@ -41,9 +41,9 @@ static char doc[] = N_("GNU imap4d -- the IMAP4D daemon"); ...@@ -41,9 +41,9 @@ static char doc[] = N_("GNU imap4d -- the IMAP4D daemon");
41 41
42 static struct argp_option options[] = 42 static struct argp_option options[] =
43 { 43 {
44 {"other-namespace", 'O', "PATHLIST", 0, 44 {"other-namespace", 'O', N_("PATHLIST"), 0,
45 N_("set the `other' namespace"), 0}, 45 N_("set the `other' namespace"), 0},
46 {"shared-namespace", 'S', "PATHLIST", 0, 46 {"shared-namespace", 'S', N_("PATHLIST"), 0,
47 N_("set the `shared' namespace"), 0}, 47 N_("set the `shared' namespace"), 0},
48 { NULL, 0, NULL, 0, NULL, 0 } 48 { NULL, 0, NULL, 0, NULL, 0 }
49 }; 49 };
......
...@@ -30,9 +30,9 @@ static error_t sieve_argp_parser __P((int key, char *arg, ...@@ -30,9 +30,9 @@ static error_t sieve_argp_parser __P((int key, char *arg,
30 30
31 /* Options used by programs that use extended authentication mechanisms. */ 31 /* Options used by programs that use extended authentication mechanisms. */
32 static struct argp_option sieve_argp_option[] = { 32 static struct argp_option sieve_argp_option[] = {
33 { "includedir", 'I', "DIR", 0, 33 { "includedir", 'I', N_("DIR"), 0,
34 "Append directory DIR to the list of directories searched for include files", 0 }, 34 "Append directory DIR to the list of directories searched for include files", 0 },
35 { "libdir", 'L', "DIR", 0, 35 { "libdir", 'L', N_("DIR"), 0,
36 "Append directory DIR to the list of directories searched for library files", 0 }, 36 "Append directory DIR to the list of directories searched for library files", 0 },
37 { NULL, 0, NULL, 0, NULL, 0 } 37 { NULL, 0, NULL, 0, NULL, 0 }
38 }; 38 };
......
...@@ -64,22 +64,22 @@ static struct argp_option options[] = ...@@ -64,22 +64,22 @@ static struct argp_option options[] =
64 N_("Don't return errors when delivering to multiple recipients"), 0 }, 64 N_("Don't return errors when delivering to multiple recipients"), 0 },
65 { "ex-quota-tempfail", ARG_QUOTA_TEMPFAIL, NULL, 0, 65 { "ex-quota-tempfail", ARG_QUOTA_TEMPFAIL, NULL, 0,
66 N_("Return temporary failure if disk or mailbox quota is exceeded"), 0 }, 66 N_("Return temporary failure if disk or mailbox quota is exceeded"), 0 },
67 { "from", 'f', "EMAIL", 0, 67 { "from", 'f', N_("EMAIL"), 0,
68 N_("Specify the sender's name") }, 68 N_("Specify the sender's name") },
69 { NULL, 'r', NULL, OPTION_ALIAS, NULL }, 69 { NULL, 'r', NULL, OPTION_ALIAS, NULL },
70 #ifdef USE_DBM 70 #ifdef USE_DBM
71 { "quota-db", 'q', "FILE", 0, 71 { "quota-db", 'q', N_("FILE"), 0,
72 N_("Specify path to quota database"), 0 }, 72 N_("Specify path to quota database"), 0 },
73 #endif 73 #endif
74 { "sieve", 'S', "PATTERN", 0, 74 { "sieve", 'S', N_("PATTERN"), 0,
75 N_("Set name pattern for user-defined sieve mail filters"), 0 }, 75 N_("Set name pattern for user-defined sieve mail filters"), 0 },
76 #ifdef WITH_GUILE 76 #ifdef WITH_GUILE
77 { "source", 's', "PATTERN", 0, 77 { "source", 's', N_("PATTERN"), 0,
78 N_("Set name pattern for user-defined mail filters"), 0 }, 78 N_("Set name pattern for user-defined mail filters"), 0 },
79 #endif 79 #endif
80 { "debug", 'x', "FLAGS", 0, 80 { "debug", 'x', N_("FLAGS"), 0,
81 N_("Enable debugging"), 0 }, 81 N_("Enable debugging"), 0 },
82 { "timeout", 't', "NUMBER", 0, 82 { "timeout", 't', N_("NUMBER"), 0,
83 N_("Set timeout for acquiring the lockfile") }, 83 N_("Set timeout for acquiring the lockfile") },
84 { NULL, 0, NULL, 0, NULL, 0 } 84 { NULL, 0, NULL, 0, NULL, 0 }
85 }; 85 };
......
...@@ -72,7 +72,7 @@ N_("GNU mail.remote -- pseudo-sendmail interface for mail delivery\n" ...@@ -72,7 +72,7 @@ N_("GNU mail.remote -- pseudo-sendmail interface for mail delivery\n"
72 "the data part of the protocol transaction will also be printed to stdout.\n"); 72 "the data part of the protocol transaction will also be printed to stdout.\n");
73 73
74 static struct argp_option options[] = { 74 static struct argp_option options[] = {
75 {"from", 'f', "ADDR", 0, N_("Override the default from address\n")}, 75 {"from", 'f', N_("ADDR"), 0, N_("Override the default from address\n")},
76 {"debug", 'd', NULL, 0, N_("Enable debugging output")}, 76 {"debug", 'd', NULL, 0, N_("Enable debugging output")},
77 { 0, 'o', "OPT", OPTION_HIDDEN, N_("Ignored for sendmail compatibility")}, 77 { 0, 'o', "OPT", OPTION_HIDDEN, N_("Ignored for sendmail compatibility")},
78 {0} 78 {0}
......
...@@ -31,7 +31,7 @@ static char args_doc[] = N_("[address...]"); ...@@ -31,7 +31,7 @@ static char args_doc[] = N_("[address...]");
31 31
32 static struct argp_option options[] = { 32 static struct argp_option options[] = {
33 {"exist", 'e', 0, 0, N_("Return true if mail exists"), 0}, 33 {"exist", 'e', 0, 0, N_("Return true if mail exists"), 0},
34 {"file", 'f', "FILE", OPTION_ARG_OPTIONAL, 34 {"file", 'f', N_("FILE"), OPTION_ARG_OPTIONAL,
35 N_("Operate on mailbox FILE (default ~/mbox)"), 0}, 35 N_("Operate on mailbox FILE (default ~/mbox)"), 0},
36 {"byname", 'F', 0, 0, N_("Save messages according to sender"), 0}, 36 {"byname", 'F', 0, 0, N_("Save messages according to sender"), 0},
37 {"headers", 'H', 0, 0, N_("Write a header summary and exit"), 0}, 37 {"headers", 'H', 0, 0, N_("Write a header summary and exit"), 0},
...@@ -41,9 +41,9 @@ static struct argp_option options[] = { ...@@ -41,9 +41,9 @@ static struct argp_option options[] = {
41 {"print", 'p', 0, 0, N_("Print all mail to standard output"), 0}, 41 {"print", 'p', 0, 0, N_("Print all mail to standard output"), 0},
42 {"quit", 'q', 0, 0, N_("Cause interrupts to terminate program"), 0}, 42 {"quit", 'q', 0, 0, N_("Cause interrupts to terminate program"), 0},
43 {"read", 'r', 0, 0, N_("Same as -p"), 0}, 43 {"read", 'r', 0, 0, N_("Same as -p"), 0},
44 {"subject", 's', "SUBJ", 0, N_("Send a message with a Subject of SUBJ"), 0}, 44 {"subject", 's', N_("SUBJ"), 0, N_("Send a message with a Subject of SUBJ"), 0},
45 {"to", 't', 0, 0, N_("Precede message by a list of addresses"), 0}, 45 {"to", 't', 0, 0, N_("Precede message by a list of addresses"), 0},
46 {"user", 'u', "USER", 0, N_("Operate on USER's mailbox"), 0}, 46 {"user", 'u', N_("USER"), 0, N_("Operate on USER's mailbox"), 0},
47 {NULL, 0, NULL, OPTION_DOC, 47 {NULL, 0, NULL, OPTION_DOC,
48 N_("Note: Argument to --file (-f) option is optional. If it is present, " 48 N_("Note: Argument to --file (-f) option is optional. If it is present, "
49 "it must follow the short option immediately, without any intervening " 49 "it must follow the short option immediately, without any intervening "
......
...@@ -67,32 +67,32 @@ static struct argp_option mu_license_argp_option[] = { ...@@ -67,32 +67,32 @@ static struct argp_option mu_license_argp_option[] = {
67 67
68 /* Options used by programs that access mailboxes. */ 68 /* Options used by programs that access mailboxes. */
69 static struct argp_option mu_mailbox_argp_option[] = { 69 static struct argp_option mu_mailbox_argp_option[] = {
70 {"mail-spool", 'm', "URL", 0, 70 {"mail-spool", 'm', N_("URL"), 0,
71 N_("Use specified URL as a mailspool directory"), 0}, 71 N_("Use specified URL as a mailspool directory"), 0},
72 {"lock-flags", ARG_LOCK_FLAGS, "FLAGS", 0, 72 {"lock-flags", ARG_LOCK_FLAGS, N_("FLAGS"), 0,
73 N_("Default locker flags (E=external, R=retry, T=time, P=pid)"), 0}, 73 N_("Default locker flags (E=external, R=retry, T=time, P=pid)"), 0},
74 { NULL, 0, NULL, 0, NULL, 0 } 74 { NULL, 0, NULL, 0, NULL, 0 }
75 }; 75 };
76 76
77 /* Options used by programs that do address mapping. */ 77 /* Options used by programs that do address mapping. */
78 static struct argp_option mu_address_argp_option[] = { 78 static struct argp_option mu_address_argp_option[] = {
79 {"email-addr", 'E', "EMAIL", 0, 79 {"email-addr", 'E', N_("EMAIL"), 0,
80 N_("Set current user's email address (default is loginname@defaultdomain)"), 0}, 80 N_("Set current user's email address (default is loginname@defaultdomain)"), 0},
81 {"email-domain", 'D', "DOMAIN", 0, 81 {"email-domain", 'D', N_("DOMAIN"), 0,
82 N_("Set domain for unqualified user names (default is this host)"), 0}, 82 N_("Set domain for unqualified user names (default is this host)"), 0},
83 { NULL, 0, NULL, 0, NULL, 0 } 83 { NULL, 0, NULL, 0, NULL, 0 }
84 }; 84 };
85 85
86 /* Options used by programs that send mail. */ 86 /* Options used by programs that send mail. */
87 static struct argp_option mu_mailer_argp_option[] = { 87 static struct argp_option mu_mailer_argp_option[] = {
88 {"mailer", 'M', "MAILER", 0, 88 {"mailer", 'M', N_("MAILER"), 0,
89 N_("Use specified URL as the default mailer"), 0}, 89 N_("Use specified URL as the default mailer"), 0},
90 { NULL, 0, NULL, 0, NULL, 0 } 90 { NULL, 0, NULL, 0, NULL, 0 }
91 }; 91 };
92 92
93 /* Options used by programs that log to syslog. */ 93 /* Options used by programs that log to syslog. */
94 static struct argp_option mu_logging_argp_option[] = { 94 static struct argp_option mu_logging_argp_option[] = {
95 {"log-facility", ARG_LOG_FACILITY, "FACILITY", 0, 95 {"log-facility", ARG_LOG_FACILITY, N_("FACILITY"), 0,
96 N_("Output logs to syslog FACILITY"), 0}, 96 N_("Output logs to syslog FACILITY"), 0},
97 { NULL, 0, NULL, 0, NULL, 0 } 97 { NULL, 0, NULL, 0, NULL, 0 }
98 }; 98 };
...@@ -100,13 +100,13 @@ static struct argp_option mu_logging_argp_option[] = { ...@@ -100,13 +100,13 @@ static struct argp_option mu_logging_argp_option[] = {
100 100
101 /* Options used by programs that become daemons. */ 101 /* Options used by programs that become daemons. */
102 static struct argp_option mu_daemon_argp_option[] = { 102 static struct argp_option mu_daemon_argp_option[] = {
103 {"daemon", 'd', "NUMBER", OPTION_ARG_OPTIONAL, 103 {"daemon", 'd', N_("NUMBER"), OPTION_ARG_OPTIONAL,
104 N_("Runs in daemon mode with a maximum of NUMBER children")}, 104 N_("Runs in daemon mode with a maximum of NUMBER children")},
105 {"inetd", 'i', 0, 0, 105 {"inetd", 'i', 0, 0,
106 N_("Run in inetd mode"), 0}, 106 N_("Run in inetd mode"), 0},
107 {"port", 'p', "PORT", 0, 107 {"port", 'p', N_("PORT"), 0,
108 N_("Listen on specified port number"), 0}, 108 N_("Listen on specified port number"), 0},
109 {"timeout", 't', "NUMBER", 0, 109 {"timeout", 't', N_("NUMBER"), 0,
110 N_("Set idle timeout value to NUMBER seconds"), 0}, 110 N_("Set idle timeout value to NUMBER seconds"), 0},
111 {"transcript", 'x', NULL, 0, 111 {"transcript", 'x', NULL, 0,
112 N_("output session transcript via syslog"), 0}, 112 N_("output session transcript via syslog"), 0},
......
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
46 #include <mailutils/argp.h> 46 #include <mailutils/argp.h>
47 #include <mailutils/mu_auth.h> 47 #include <mailutils/mu_auth.h>
48 #include <mailutils/error.h> 48 #include <mailutils/error.h>
49 #include <mailutils/nls.h>
49 50
50 /*#define DEBUG(c) do { printf c; printf("\n"); } while (0)*/ 51 /*#define DEBUG(c) do { printf c; printf("\n"); } while (0)*/
51 #define DEBUG(c) 52 #define DEBUG(c)
...@@ -205,9 +206,9 @@ static error_t mu_auth_argp_parser __P((int key, char *arg, ...@@ -205,9 +206,9 @@ static error_t mu_auth_argp_parser __P((int key, char *arg,
205 206
206 /* Options used by programs that use extended authentication mechanisms. */ 207 /* Options used by programs that use extended authentication mechanisms. */
207 static struct argp_option mu_auth_argp_option[] = { 208 static struct argp_option mu_auth_argp_option[] = {
208 { "authentication", ARG_AUTHENTICATION, "MODLIST", 0, 209 { "authentication", ARG_AUTHENTICATION, N_("MODLIST"), 0,
209 "Set list of modules to be used for authentication", 0 }, 210 "Set list of modules to be used for authentication", 0 },
210 { "authorization", ARG_AUTHORIZATION, "MODLIST", 0, 211 { "authorization", ARG_AUTHORIZATION, N_("MODLIST"), 0,
211 "Set list of modules to be used for authorization", 0 }, 212 "Set list of modules to be used for authorization", 0 },
212 { NULL, 0, NULL, 0, NULL, 0 } 213 { NULL, 0, NULL, 0, NULL, 0 }
213 }; 214 };
......
...@@ -25,8 +25,8 @@ static char args_doc[] = ""; ...@@ -25,8 +25,8 @@ static char args_doc[] = "";
25 25
26 /* GNU options */ 26 /* GNU options */
27 static struct argp_option options[] = { 27 static struct argp_option options[] = {
28 {"form", 'F', "FILE", 0, N_("Read format from given file")}, 28 {"form", 'F', N_("FILE"), 0, N_("Read format from given file")},
29 {"format", 't', "FORMAT", 0, N_("Use this format string")}, 29 {"format", 't', N_("FORMAT"), 0, N_("Use this format string")},
30 {"dump", 'd', NULL, 0, N_("Dump the listing of compiled format code")}, 30 {"dump", 'd', NULL, 0, N_("Dump the listing of compiled format code")},
31 { N_("\nUse -help switch to obtain the list of traditional MH options. "), 0, 0, OPTION_DOC, "" }, 31 { N_("\nUse -help switch to obtain the list of traditional MH options. "), 0, 0, OPTION_DOC, "" },
32 32
......
...@@ -43,7 +43,7 @@ static struct argp_option options[] = { ...@@ -43,7 +43,7 @@ static struct argp_option options[] = {
43 {N_("Actions are:"), 0, 0, OPTION_DOC, "", 0 }, 43 {N_("Actions are:"), 0, 0, OPTION_DOC, "", 0 },
44 {"print", 'p', NULL, 0, N_("List the folders (default)"), 1 }, 44 {"print", 'p', NULL, 0, N_("List the folders (default)"), 1 },
45 {"list", 'l', NULL, 0, N_("List the contents of the folder stack"), 1}, 45 {"list", 'l', NULL, 0, N_("List the contents of the folder stack"), 1},
46 {"push", ARG_PUSH, "FOLDER", OPTION_ARG_OPTIONAL, 46 {"push", ARG_PUSH, N_("FOLDER"), OPTION_ARG_OPTIONAL,
47 N_("Push the folder on the folder stack. If FOLDER is specified, it is pushed. " 47 N_("Push the folder on the folder stack. If FOLDER is specified, it is pushed. "
48 "Otherwise, if a folder is given in the command line (via + or --folder), " 48 "Otherwise, if a folder is given in the command line (via + or --folder), "
49 "it is pushed on stack. Otherwise, the current folder and the top of the folder " 49 "it is pushed on stack. Otherwise, the current folder and the top of the folder "
...@@ -51,14 +51,20 @@ static struct argp_option options[] = { ...@@ -51,14 +51,20 @@ static struct argp_option options[] = {
51 {"pop", ARG_POP, NULL, 0, N_("Pop the folder off the folder stack"), 1}, 51 {"pop", ARG_POP, NULL, 0, N_("Pop the folder off the folder stack"), 1},
52 52
53 {N_("Options are:"), 0, 0, OPTION_DOC, "", 2 }, 53 {N_("Options are:"), 0, 0, OPTION_DOC, "", 2 },
54 {"folder", 'f', "FOLDER", 0, N_("Specify folder to operate upon"), 3}, 54 {"folder", 'f', N_("FOLDER"), 0, N_("Specify folder to operate upon"), 3},
55 {"all", 'a', NULL, 0, N_("List all folders"), 3}, 55 {"all", 'a', NULL, 0, N_("List all folders"), 3},
56 {"create", 'c', "BOOL", OPTION_ARG_OPTIONAL, N_("Create non-existing folders"), 3}, 56 {"create", 'c', N_("BOOL"), OPTION_ARG_OPTIONAL,
57 {"fast", 'F', "BOOL", OPTION_ARG_OPTIONAL, N_("List only the folder names"), 3}, 57 N_("Create non-existing folders"), 3},
58 {"header", 'h', "BOOL", OPTION_ARG_OPTIONAL, N_("Print the header line"), 3}, 58 {"fast", 'F', N_("BOOL"), OPTION_ARG_OPTIONAL,
59 {"recurse", 'r', "BOOL", OPTION_ARG_OPTIONAL, N_("Scan folders recursively"), 3}, 59 N_("List only the folder names"), 3},
60 {"total", 't', "BOOL", OPTION_ARG_OPTIONAL, N_("Output the total statistics"), 3}, 60 {"header", 'h', N_("BOOL"), OPTION_ARG_OPTIONAL,
61 { N_("\nUse -help switch to obtain the list of traditional MH options. "), 0, 0, OPTION_DOC, "", 4 }, 61 N_("Print the header line"), 3},
62 {"recurse", 'r', N_("BOOL"), OPTION_ARG_OPTIONAL,
63 N_("Scan folders recursively"), 3},
64 {"total", 't', N_("BOOL"), OPTION_ARG_OPTIONAL,
65 N_("Output the total statistics"), 3},
66 { N_("\nUse -help switch to obtain the list of traditional MH options. "),
67 0, 0, OPTION_DOC, "", 4 },
62 68
63 {NULL}, 69 {NULL},
64 }; 70 };
......
...@@ -25,17 +25,17 @@ static char args_doc[] = N_("[+folder]"); ...@@ -25,17 +25,17 @@ static char args_doc[] = N_("[+folder]");
25 25
26 /* GNU options */ 26 /* GNU options */
27 static struct argp_option options[] = { 27 static struct argp_option options[] = {
28 {"file", 'i', "FILE", 0, N_("Incorporate mail from named file")}, 28 {"file", 'i', N_("FILE"), 0, N_("Incorporate mail from named file")},
29 {"folder", 'f', "FOLDER", 0, N_("Specify folder to incorporate mail to")}, 29 {"folder", 'f', N_("FOLDER"), 0, N_("Specify folder to incorporate mail to")},
30 {"audit", 'a', "FILE", 0, N_("Enable audit")}, 30 {"audit", 'a', N_("FILE"), 0, N_("Enable audit")},
31 {"noaudit", 'n', 0, 0, N_("Disable audit")}, 31 {"noaudit", 'n', 0, 0, N_("Disable audit")},
32 {"changecur", 'c', "BOOL", OPTION_ARG_OPTIONAL, 32 {"changecur", 'c', N_("BOOL"), OPTION_ARG_OPTIONAL,
33 N_("Mark first incorporated message as current (default)")}, 33 N_("Mark first incorporated message as current (default)")},
34 {"form", 'F', "FILE", 0, N_("Read format from given file")}, 34 {"form", 'F', N_("FILE"), 0, N_("Read format from given file")},
35 {"format", 't', "FORMAT", 0, N_("Use this format string")}, 35 {"format", 't', N_("FORMAT"), 0, N_("Use this format string")},
36 {"truncate", 'T', "BOOL", OPTION_ARG_OPTIONAL, 36 {"truncate", 'T', N_("BOOL"), OPTION_ARG_OPTIONAL,
37 N_("Truncate source mailbox after incorporating (default)")}, 37 N_("Truncate source mailbox after incorporating (default)")},
38 {"width", 'w', "NUMBER", 0, N_("Set output width")}, 38 {"width", 'w', N_("NUMBER"), 0, N_("Set output width")},
39 {"quiet", 'q', 0, 0, N_("Be quiet")}, 39 {"quiet", 'q', 0, 0, N_("Be quiet")},
40 {"license", 'l', 0, 0, N_("Display software license"), -1}, 40 {"license", 'l', 0, 0, N_("Display software license"), -1},
41 41
...@@ -46,7 +46,7 @@ static struct argp_option options[] = { ...@@ -46,7 +46,7 @@ static struct argp_option options[] = {
46 46
47 /* Traditional MH options */ 47 /* Traditional MH options */
48 struct mh_option mh_option[] = { 48 struct mh_option mh_option[] = {
49 {"audit", 5, 'a', MH_OPT_ARG, "audit-file"}, 49 {"audit", 5, 'a', MH_OPT_ARG, "audit-file" },
50 {"noaudit", 3, 'n', 0, }, 50 {"noaudit", 3, 'n', 0, },
51 {"changecur", 1, 'c',MH_OPT_BOOL}, 51 {"changecur", 1, 'c',MH_OPT_BOOL},
52 {"file", 2, 'i', MH_OPT_ARG, "input-file"}, 52 {"file", 2, 'i', MH_OPT_ARG, "input-file"},
......
...@@ -25,7 +25,7 @@ static char args_doc[] = N_("[+folder] [msgs]"); ...@@ -25,7 +25,7 @@ static char args_doc[] = N_("[+folder] [msgs]");
25 25
26 /* GNU options */ 26 /* GNU options */
27 static struct argp_option options[] = { 27 static struct argp_option options[] = {
28 {"folder", 'f', "FOLDER", 0, N_("Specify folder to operate upon")}, 28 {"folder", 'f', N_("FOLDER"), 0, N_("Specify folder to operate upon")},
29 { N_("\nUse -help switch to obtain the list of traditional MH options. "), 0, 0, OPTION_DOC, "" }, 29 { N_("\nUse -help switch to obtain the list of traditional MH options. "), 0, 0, OPTION_DOC, "" },
30 { 0 } 30 { 0 }
31 }; 31 };
......
...@@ -30,16 +30,16 @@ static char args_doc[] = N_("messages folder [folder...]"); ...@@ -30,16 +30,16 @@ static char args_doc[] = N_("messages folder [folder...]");
30 30
31 /* GNU options */ 31 /* GNU options */
32 static struct argp_option options[] = { 32 static struct argp_option options[] = {
33 {"folder", 'f', "FOLDER", 0, N_("Specify folder to operate upon")}, 33 {"folder", 'f', N_("FOLDER"), 0, N_("Specify folder to operate upon")},
34 {"draft", 'd', NULL, 0, N_("Use <mh-dir>/draft as the source message")}, 34 {"draft", 'd', NULL, 0, N_("Use <mh-dir>/draft as the source message")},
35 {"link", 'l', "BOOL", OPTION_ARG_OPTIONAL, 35 {"link", 'l', N_("BOOL"), OPTION_ARG_OPTIONAL,
36 N_("(not implemented) Preserve the source folder copy")}, 36 N_("(not implemented) Preserve the source folder copy")},
37 {"preserve", 'p', "BOOL", OPTION_ARG_OPTIONAL, 37 {"preserve", 'p', N_("BOOL"), OPTION_ARG_OPTIONAL,
38 N_("(not implemented) Try to preserve message sequence numbers")}, 38 N_("(not implemented) Try to preserve message sequence numbers")},
39 {"source", 's', "FOLDER", 0, 39 {"source", 's', N_("FOLDER"), 0,
40 N_("Specify source folder. FOLDER will became the current folder after the program exits.")}, 40 N_("Specify source folder. FOLDER will became the current folder after the program exits.")},
41 {"src", 0, NULL, OPTION_ALIAS, NULL}, 41 {"src", 0, NULL, OPTION_ALIAS, NULL},
42 {"file", 'F', "FILE", 0, N_("Use FILE as the source message")}, 42 {"file", 'F', N_("FILE"), 0, N_("Use FILE as the source message")},
43 { N_("\nUse -help switch to obtain the list of traditional MH options. "), 0, 0, OPTION_DOC, "" }, 43 { N_("\nUse -help switch to obtain the list of traditional MH options. "), 0, 0, OPTION_DOC, "" },
44 { 0 } 44 { 0 }
45 }; 45 };
......
...@@ -34,27 +34,27 @@ static char args_doc[] = N_("[+folder] [msg]"); ...@@ -34,27 +34,27 @@ static char args_doc[] = N_("[+folder] [msg]");
34 34
35 /* GNU options */ 35 /* GNU options */
36 static struct argp_option options[] = { 36 static struct argp_option options[] = {
37 {"annotate", 'a', "BOOL", OPTION_ARG_OPTIONAL, 37 {"annotate", 'a', N_("BOOL"), OPTION_ARG_OPTIONAL,
38 N_("Add Replied: header to the message being replied to")}, 38 N_("Add Replied: header to the message being replied to")},
39 {"draftfolder", 'd', "FOLDER", 0, 39 {"draftfolder", 'd', N_("FOLDER"), 0,
40 N_("Invoke the draftfolder facility")}, 40 N_("Invoke the draftfolder facility")},
41 {"draftmessage" , 'm', "MSG", 0, 41 {"draftmessage" , 'm', N_("MSG"), 0,
42 N_("Invoke the draftmessage facility")}, 42 N_("Invoke the draftmessage facility")},
43 {"cc", 'c', "{all|to|cc|me}", 0, 43 {"cc", 'c', "{all|to|cc|me}", 0,
44 N_("Specify whom to place on the Cc: list of the reply")}, 44 N_("Specify whom to place on the Cc: list of the reply")},
45 {"nocc", 'n', "{all|to|cc|me}", 0, 45 {"nocc", 'n', "{all|to|cc|me}", 0,
46 N_("Specify whom to remove from the Cc: list of the reply")}, 46 N_("Specify whom to remove from the Cc: list of the reply")},
47 {"folder", 'f', "FOLDER", 0, N_("Specify folder to operate upon")}, 47 {"folder", 'f', N_("FOLDER"), 0, N_("Specify folder to operate upon")},
48 {"editor", 'e', "PROG", 0, N_("Set the editor program to use")}, 48 {"editor", 'e', N_("PROG"), 0, N_("Set the editor program to use")},
49 {"noedit", ARG_NOEDIT, 0, 0, N_("Suppress the initial edit")}, 49 {"noedit", ARG_NOEDIT, 0, 0, N_("Suppress the initial edit")},
50 {"fcc", ARG_FCC, "FOLDER", 0, N_("Set the folder to receive Fcc's.")}, 50 {"fcc", ARG_FCC, N_("FOLDER"), 0, N_("Set the folder to receive Fcc's.")},
51 {"filter", ARG_FILTER, "PROG", 0, 51 {"filter", ARG_FILTER, N_("PROG"), 0,
52 N_("Set the filter program to preprocess the body of the message being replied")}, 52 N_("Set the filter program to preprocess the body of the message being replied")},
53 {"form", 'F', "FILE", 0, N_("Read format from given file")}, 53 {"form", 'F', N_("FILE"), 0, N_("Read format from given file")},
54 {"inplace", ARG_INPLACE, "BOOL", 0, N_("Annotate the message in place")}, 54 {"inplace", ARG_INPLACE, N_("BOOL"), 0, N_("Annotate the message in place")},
55 {"query", ARG_QUERY, "BOOL", 0, N_("Query for addresses to place in To: and Cc: lists")}, 55 {"query", ARG_QUERY, N_("BOOL"), 0, N_("Query for addresses to place in To: and Cc: lists")},
56 {"width", 'w', "NUMBER", 0, N_("Set output width")}, 56 {"width", 'w', N_("NUMBER"), 0, N_("Set output width")},
57 {"whatnowproc", ARG_WHATNOWPROC, "PROG", 0, 57 {"whatnowproc", ARG_WHATNOWPROC, N_("PROG"), 0,
58 N_("Set the replacement for whatnow program")}, 58 N_("Set the replacement for whatnow program")},
59 { N_("\nUse -help switch to obtain the list of traditional MH options. "), 0, 0, OPTION_DOC, "" }, 59 { N_("\nUse -help switch to obtain the list of traditional MH options. "), 0, 0, OPTION_DOC, "" },
60 { 0 } 60 { 0 }
......
...@@ -34,8 +34,8 @@ static char args_doc[] = N_("[+folder]"); ...@@ -34,8 +34,8 @@ static char args_doc[] = N_("[+folder]");
34 34
35 /* GNU options */ 35 /* GNU options */
36 static struct argp_option options[] = { 36 static struct argp_option options[] = {
37 {"folder", 'f', "FOLDER", 0, N_("Specify the folder to delete")}, 37 {"folder", 'f', N_("FOLDER"), 0, N_("Specify the folder to delete")},
38 {"interactive", 'i', "BOOL", OPTION_ARG_OPTIONAL, 38 {"interactive", 'i', N_("BOOL"), OPTION_ARG_OPTIONAL,
39 N_("Interactive mode: ask for confirmation before removing each folder")}, 39 N_("Interactive mode: ask for confirmation before removing each folder")},
40 {"recursive", 'r', NULL, 0, N_("Recursively delete all subfolders")}, 40 {"recursive", 'r', NULL, 0, N_("Recursively delete all subfolders")},
41 { N_("\nUse -help switch to obtain the list of traditional MH options. "), 0, 0, OPTION_DOC, "" }, 41 { N_("\nUse -help switch to obtain the list of traditional MH options. "), 0, 0, OPTION_DOC, "" },
......
...@@ -25,7 +25,7 @@ static char args_doc[] = N_("[+folder] [msgs]"); ...@@ -25,7 +25,7 @@ static char args_doc[] = N_("[+folder] [msgs]");
25 25
26 /* GNU options */ 26 /* GNU options */
27 static struct argp_option options[] = { 27 static struct argp_option options[] = {
28 {"folder", 'f', "FOLDER", 0, N_("Specify folder to operate upon")}, 28 {"folder", 'f', N_("FOLDER"), 0, N_("Specify folder to operate upon")},
29 { N_("\nUse -help switch to obtain the list of traditional MH options. "), 29 { N_("\nUse -help switch to obtain the list of traditional MH options. "),
30 0, 0, OPTION_DOC, "" }, 30 0, 0, OPTION_DOC, "" },
31 { 0 } 31 { 0 }
......
...@@ -31,15 +31,15 @@ static char args_doc[] = N_("[+folder] [msgs]"); ...@@ -31,15 +31,15 @@ static char args_doc[] = N_("[+folder] [msgs]");
31 31
32 /* GNU options */ 32 /* GNU options */
33 static struct argp_option options[] = { 33 static struct argp_option options[] = {
34 {"folder", 'f', "FOLDER", 0, N_("Specify folder to scan")}, 34 {"folder", 'f', N_("FOLDER"), 0, N_("Specify folder to scan")},
35 {"clear", 'c', "BOOL", OPTION_ARG_OPTIONAL, 35 {"clear", 'c', N_("BOOL"), OPTION_ARG_OPTIONAL,
36 N_("Clear screen after displaying the list")}, 36 N_("Clear screen after displaying the list")},
37 {"form", 'F', "FILE", 0, N_("Read format from given file")}, 37 {"form", 'F', N_("FILE"), 0, N_("Read format from given file")},
38 {"format", 't', "FORMAT", 0, N_("Use this format string")}, 38 {"format", 't', N_("FORMAT"), 0, N_("Use this format string")},
39 {"header", 'H', "BOOL", OPTION_ARG_OPTIONAL, N_("Display header")}, 39 {"header", 'H', N_("BOOL"), OPTION_ARG_OPTIONAL, N_("Display header")},
40 {"width", 'w', "NUMBER", 0, N_("Set output width")}, 40 {"width", 'w', N_("NUMBER"), 0, N_("Set output width")},
41 {"reverse", 'r', "BOOL", OPTION_ARG_OPTIONAL, N_("List messages in reverse order")}, 41 {"reverse", 'r', N_("BOOL"), OPTION_ARG_OPTIONAL, N_("List messages in reverse order")},
42 {"file", 'i', "FILE", 0, N_("[Not yet implemented]")}, 42 {"file", 'i', N_("FILE"), 0, N_("[Not yet implemented]")},
43 43
44 {"license", 'l', 0, 0, N_("Display software license"), -1}, 44 {"license", 'l', 0, 0, N_("Display software license"), -1},
45 45
......
...@@ -75,10 +75,10 @@ static struct argp_option options[] = ...@@ -75,10 +75,10 @@ static struct argp_option options[] =
75 " For a user: --modify --username <username>\n"), 2 }, 75 " For a user: --modify --username <username>\n"), 2 },
76 76
77 { NULL, 0, NULL, 0, N_("Options are:"), 3 }, 77 { NULL, 0, NULL, 0, N_("Options are:"), 3 },
78 { "file", 'f', "FILE", 0, N_("Read input from FILE (default stdin)"), 3 }, 78 { "file", 'f', N_("FILE"), 0, N_("Read input from FILE (default stdin)"), 3 },
79 { "output", 'o', "FILE", 0, N_("Direct output to file"), 3 }, 79 { "output", 'o', N_("FILE"), 0, N_("Direct output to file"), 3 },
80 { "password", 'p', "STRING", 0, N_("Specify user's password"), 3 }, 80 { "password", 'p', N_("STRING"), 0, N_("Specify user's password"), 3 },
81 { "user", 'u', "USERNAME", 0, N_("Specify user name"), 3 }, 81 { "user", 'u', N_("USERNAME"), 0, N_("Specify user name"), 3 },
82 { NULL, } 82 { NULL, }
83 }; 83 };
84 84
......
...@@ -37,9 +37,9 @@ static struct argp_option options[] = ...@@ -37,9 +37,9 @@ static struct argp_option options[] =
37 { 37 {
38 { "debug", 'd', 0, 0, N_("Display debugging information"), 1 }, 38 { "debug", 'd', 0, 0, N_("Display debugging information"), 1 },
39 { "header", 'h', 0, 0, N_("Display entire header"), 1 }, 39 { "header", 'h', 0, 0, N_("Display entire header"), 1 },
40 { "weedlist", 'w', "LIST", 0, 40 { "weedlist", 'w', N_("LIST"), 0,
41 N_("List of header names separated by whitespace or commas"), 1 }, 41 N_("List of header names separated by whitespace or commas"), 1 },
42 { "folder", 'f', "FOLDER", 0, N_("Folder to use"), 1 }, 42 { "folder", 'f', N_("FOLDER"), 0, N_("Folder to use"), 1 },
43 { "no-header", 'n', 0, 0, N_("Exclude all headers"), 1 }, 43 { "no-header", 'n', 0, 0, N_("Exclude all headers"), 1 },
44 { "form-feeds", 'p', 0, 0, N_("Output formfeeds between messages"), 1 }, 44 { "form-feeds", 'p', 0, 0, N_("Output formfeeds between messages"), 1 },
45 { "show-all-match", 'a', NULL, 0, 45 { "show-all-match", 'a', NULL, 0,
......
...@@ -73,19 +73,19 @@ static struct argp_option options[] = ...@@ -73,19 +73,19 @@ static struct argp_option options[] =
73 {"dump", 'D', 0, 0, 73 {"dump", 'D', 0, 0,
74 N_("Compile script, dump disassembled sieve code to terminal and exit"), 0 }, 74 N_("Compile script, dump disassembled sieve code to terminal and exit"), 0 },
75 75
76 {"mbox-url", 'f', "MBOX", 0, 76 {"mbox-url", 'f', N_("MBOX"), 0,
77 N_("Mailbox to sieve (defaults to user's mail spool)"), 0}, 77 N_("Mailbox to sieve (defaults to user's mail spool)"), 0},
78 78
79 {"ticket", 't', "TICKET", 0, 79 {"ticket", 't', N_("TICKET"), 0,
80 N_("Ticket file for mailbox authentication"), 0}, 80 N_("Ticket file for mailbox authentication"), 0},
81 81
82 {"debug", 'd', "FLAGS", OPTION_ARG_OPTIONAL, 82 {"debug", 'd', N_("FLAGS"), OPTION_ARG_OPTIONAL,
83 N_("Debug flags (defaults to \"" D_DEFAULT "\")"), 0}, 83 N_("Debug flags (defaults to \"" D_DEFAULT "\")"), 0},
84 84
85 {"verbose", 'v', NULL, 0, 85 {"verbose", 'v', NULL, 0,
86 N_("Log all actions"), 0}, 86 N_("Log all actions"), 0},
87 87
88 {"email", 'e', "ADDRESS", 0, 88 {"email", 'e', N_("ADDRESS"), 0,
89 N_("Override user email address"), 0}, 89 N_("Override user email address"), 0},
90 90
91 {0} 91 {0}
......