/* Make sure we have at least one auth method. */
if (auth_switch[0].name == NULL) {
audit_failure(NewArgv, "no authentication methods");
- log_error(0, "%s %s %s",
- "There are no authentication methods compiled into sudo!",
- "If you want to turn off authentication, use the",
- "--disable-authentication configure option.");
+ log_error(0,
+ _("There are no authentication methods compiled into sudo! "
+ "If you want to turn off authentication, use the "
+ "--disable-authentication configure option."));
return -1;
}
standalone = IS_STANDALONE(&auth_switch[0]);
if (standalone && auth_switch[1].name != NULL) {
audit_failure(NewArgv, "invalid authentication methods");
- log_error(0, "Invalid authentication methods compiled into sudo! "
- "You cannot mix standalone and non-standalone authentication.");
+ log_error(0, _("Invalid authentication methods compiled into sudo! "
+ "You may mix standalone and non-standalone authentication."));
return -1;
}
flags = 0;
else
flags = NO_MAIL;
- log_error(flags, "%d incorrect password attempt%s",
- def_passwd_tries - counter,
- (def_passwd_tries - counter == 1) ? "" : "s");
+ log_error(flags, ngettext("%d incorrect password attempt",
+ "%d incorrect password attempts",
+ def_passwd_tries - counter), def_passwd_tries - counter);
}
audit_failure(NewArgv, "authentication failure");
rval = FALSE;
{
sudo_auth *auth;
- sudo_printf(SUDO_CONV_INFO_MSG, "Authentication methods:");
+ sudo_printf(SUDO_CONV_INFO_MSG, _("Authentication methods:"));
for (auth = auth_switch; auth->name; auth++)
sudo_printf(SUDO_CONV_INFO_MSG, " '%s'", auth->name);
sudo_printf(SUDO_CONV_INFO_MSG, "\n");