Add calls to bindtextdomain() and textdomain()
Currently there are two domains, one for the sudo front-end and one for the sudoers plugin and its associated utilities.
This commit is contained in:
@@ -178,6 +178,11 @@ main(int argc, char *argv[], char *envp[])
|
||||
setprogname(argv[0]);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBINTL_H
|
||||
bindtextdomain("sudo", LOCALEDIR);
|
||||
textdomain("sudo");
|
||||
#endif
|
||||
|
||||
/* Must be done before we do any password lookups */
|
||||
#if defined(HAVE_GETPRPWNAM) && defined(HAVE_SET_AUTH_PARAMETERS)
|
||||
(void) set_auth_parameters(argc, argv);
|
||||
|
Reference in New Issue
Block a user