Imported Upstream version 1.8.2
[debian/sudo] / common / aix.c
index 00c0f6ad8528cba7cec8ef9f302828216cae5ab5..875eb8cbb91d456a5d89b2fb187edd1556cb4b29 100644 (file)
@@ -35,6 +35,9 @@
 #include "alloc.h"
 #include "error.h"
 
+#define DEFAULT_TEXT_DOMAIN    "sudo"
+#include "gettext.h"
+
 #ifdef HAVE_GETUSERATTR
 
 #ifndef HAVE_SETRLIMIT64
@@ -138,10 +141,10 @@ aix_setauthdb(char *user)
 
     if (user != NULL) {
        if (setuserdb(S_READ) != 0)
-           error(1, "unable to open userdb");
+           error(1, _("unable to open userdb"));
        if (getuserattr(user, S_REGISTRY, &registry, SEC_CHAR) == 0) {
            if (setauthdb(registry, NULL) != 0)
-               error(1, "unable to switch to registry \"%s\" for %s",
+               error(1, _("unable to switch to registry \"%s\" for %s"),
                    registry, user);
        }
        enduserdb();
@@ -155,7 +158,7 @@ void
 aix_restoreauthdb(void)
 {
     if (setauthdb(NULL, NULL) != 0)
-       error(1, "unable to restore registry");
+       error(1, _("unable to restore registry"));
 }
 #endif