diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-05-16 15:17:25 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-05-16 15:17:25 +0000 |
commit | 78c85a14ac870f1c9bc9a496a3ad0084f8d17ae3 (patch) | |
tree | b12b7b1b185dbcb81a1c8702fd50d7b1d9211a65 /src/main.c | |
parent | 0c1e586a2487339d60019504250dcecc58f312ee (diff) | |
download | mailfromd-78c85a14ac870f1c9bc9a496a3ad0084f8d17ae3.tar.gz mailfromd-78c85a14ac870f1c9bc9a496a3ad0084f8d17ae3.tar.bz2 |
Add missing NLS markers
git-svn-id: file:///svnroot/mailfromd/trunk@1441 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 27 |
1 files changed, 16 insertions, 11 deletions
@@ -859,13 +859,12 @@ static struct argp_option options[] = { N_("Compile files"), GRP+1 }, { "load", 'l', N_("FILE"), OPTION_HIDDEN, N_("Load library"), GRP+1 }, { "load-dir", 'L', N_("DIR"), OPTION_HIDDEN, N_("Add DIR to the load path"), GRP+1 }, - #undef GRP #define GRP 15 { NULL, 0, NULL, 0, N_("Database management options"), GRP }, { "file", 'f', N_("FILE"), 0, N_("DB file name to operate upon"), @@ -1029,13 +1028,14 @@ parse_opt (int key, char *arg, struct argp_state *state) file_option = arg; break; case 'H': format_option = db_format_lookup(arg); if (format_option == NULL) - argp_error(state, "unknown DB format"); + argp_error(state, _("Unknown database format: %s"), + arg); break; case 'I': add_include_dir(arg); break; @@ -1072,14 +1072,15 @@ parse_opt (int key, char *arg, struct argp_state *state) time_format_string = arg; break; case 'c': case 'l': case 'L': - argp_error(state, "The option `-%c' is not yet implemented", - key); + argp_error(state, + _("The option `-%c' is not yet implemented"), + key); break; case OPTION_LOG_TAG: syslog_tag = arg; break; @@ -1101,13 +1102,14 @@ parse_opt (int key, char *arg, struct argp_state *state) if (!arg) optimization_level = 1; else { char *p; optimization_level = strtoul(arg, &p, 0); if (*p) - argp_error(state, "-O level must be a non-negative integer"); + argp_error(state, + _("-O level must be a non-negative integer")); } break; case 'S': set_option("source", arg, 1); break; @@ -1119,13 +1121,14 @@ parse_opt (int key, char *arg, struct argp_state *state) case 't': mode = MAILFROMD_TEST; if (arg) { test_state = string_to_state(arg); if (test_state == smtp_state_none) argp_error(state, - "Unknown smtp state tag: %s", arg); + _("Unknown smtp state tag: %s"), + arg); } log_to_stderr = 1; need_config = 1; break; case 'u': @@ -1140,13 +1143,13 @@ parse_opt (int key, char *arg, struct argp_state *state) { char *p; p = strchr(arg, '='); if (!p) argp_error(state, - "incorrect variable assignement: %s", + _("Expected assignment, but found `%s'"), arg); *p++ = 0; defer_initialize_variable(arg, p); break; } @@ -1210,13 +1213,14 @@ parse_opt (int key, char *arg, struct argp_state *state) break; case OPTION_GACOPYZ_LOG: { int lev = gacopyz_string_to_log_level(arg); if (lev == -1) - argp_error(state, "%s: invalid Gacopyz log level", + argp_error(state, + _("%s: invalid log level"), arg); smfi_setlogmask(SMI_LOG_FROM(lev)); break; } case OPTION_LIST: @@ -1339,13 +1343,14 @@ switch_to_privs(uid_t uid, gid_t gid) emptygidset = xmalloc (size * sizeof emptygidset[0]); emptygidset[0] = gid ? gid : getegid(); if (mu_list_get_iterator(retain_groups, &itr) == 0) { for (mu_iterator_first (itr); !mu_iterator_is_done (itr); mu_iterator_next (itr)) - mu_iterator_current (itr, (void **)(emptygidset + j++)); + mu_iterator_current (itr, + (void **)(emptygidset + j++)); mu_iterator_destroy(&itr); } /* Reset group permissions */ if (geteuid() == 0 && setgroups(j, emptygidset)) { mu_error(_("setgroups(1, %lu) failed: %s"), @@ -1358,13 +1363,13 @@ switch_to_privs(uid_t uid, gid_t gid) /* Switch to the user's gid. On some OSes the effective gid must be reset first */ #if defined(HAVE_SETEGID) if ((rc = setegid(gid)) < 0) mu_error(_("setegid(%lu) failed: %s"), - (unsigned long) gid, mu_strerror(errno)); + (unsigned long) gid, mu_strerror(errno)); #elif defined(HAVE_SETREGID) if ((rc = setregid(gid, gid)) < 0) mu_error(_("setregid(%lu,%lu) failed: %s"), (unsigned long) gid, (unsigned long) gid, mu_strerror(errno)); #elif defined(HAVE_SETRESGID) @@ -1708,13 +1713,13 @@ version(FILE *stream, struct argp_state *state) } int main(int argc, char **argv) { int index; - + #ifdef ENABLE_NLS mu_init_nls(); setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); #endif |