summaryrefslogtreecommitdiffabout
path: root/src/main.c
authorSergey Poznyakoff <gray@gnu.org.ua>2007-05-16 15:17:25 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2007-05-16 15:17:25 (GMT)
commit78c85a14ac870f1c9bc9a496a3ad0084f8d17ae3 (patch) (side-by-side diff)
treeb12b7b1b185dbcb81a1c8702fd50d7b1d9211a65 /src/main.c
parent0c1e586a2487339d60019504250dcecc58f312ee (diff)
downloadmailfromd-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') (more/less context) (ignore whitespace changes)
-rw-r--r--src/main.c27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/main.c b/src/main.c
index fa6e3d5..ce8cf99 100644
--- a/src/main.c
+++ b/src/main.c
@@ -862,7 +862,6 @@ static struct argp_option options[] = {
{ "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,
@@ -1032,7 +1031,8 @@ parse_opt (int key, char *arg, struct argp_state *state)
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':
@@ -1075,8 +1075,9 @@ parse_opt (int key, char *arg, struct argp_state *state)
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:
@@ -1104,7 +1105,8 @@ parse_opt (int key, char *arg, struct argp_state *state)
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;
@@ -1122,7 +1124,8 @@ parse_opt (int key, char *arg, struct argp_state *state)
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;
@@ -1143,7 +1146,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
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);
@@ -1213,7 +1216,8 @@ parse_opt (int key, char *arg, struct argp_state *state)
{
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;
@@ -1342,7 +1346,8 @@ switch_to_privs(uid_t uid, gid_t gid)
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);
}
@@ -1361,7 +1366,7 @@ switch_to_privs(uid_t uid, gid_t gid)
#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"),
@@ -1711,7 +1716,7 @@ int
main(int argc, char **argv)
{
int index;
-
+
#ifdef ENABLE_NLS
mu_init_nls();
setlocale (LC_ALL, "");

Return to:

Send suggestions and report system problems to the System administrator.