N_()ify
authorLove Hörnquist Åstrand <lha@kth.se>
Sun, 14 Sep 2008 11:53:36 +0000 (11:53 +0000)
committerLove Hörnquist Åstrand <lha@kth.se>
Sun, 14 Sep 2008 11:53:36 +0000 (11:53 +0000)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23831 ec53bebd-3082-4978-b11e-865c3cabbd6b

kuser/kswitch.c

index 5c0f71a00b477e0c577ad2ad13fbb6d30fcf8c7b..f4d805de97fa4ef12e0ebd88bc884b118f9f03f2 100644 (file)
@@ -47,13 +47,13 @@ static char *type;
 
 static struct getargs args[] = {
     { "type",                  't', arg_string, &type,
-      "type of credential cache", "type" },
+      NP_("type of credential cache", ""), "type" },
     { "cache",                 'c', arg_string, &cache,
-      "name of credential cache", "cache" },
+      NP_("name of credential cache", ""), "cache" },
     { "principal",             'p', arg_string, &principal,
-      "name of principal", "principal" },
+      NP_("name of principal", ""), "principal" },
     { "version",               0,   arg_flag, &version_flag,
-      "print version", NULL },
+      NP_("print version", ""), NULL },
     { "help",                  0,   arg_flag, &help_flag, NULL, NULL}
 };
 
@@ -98,7 +98,8 @@ main (int argc, char **argv)
        usage (1);
 
     if (cache && principal)
-       krb5_errx(context, 1, "Both --cache and --principal given, choose one");
+       krb5_errx(context, 1,
+                 N_("Both --cache and --principal given, choose one", ""));
 
     if (principal) {
        krb5_principal p;
@@ -110,7 +111,7 @@ main (int argc, char **argv)
        ret = krb5_cc_cache_match(context, p, type, &id);
        if (ret)
            krb5_err (context, 1, ret,
-                     "Did not find principal: %s", principal);
+                     N_("Did not find principal: %s", ""), principal);
 
        krb5_free_principal(context, p);
 
@@ -124,7 +125,7 @@ main (int argc, char **argv)
        
        asprintf(&str, "%s:%s", ops->prefix, cache);
        if (str == NULL)
-           krb5_errx(context, 1, "out of memory");
+           krb5_errx(context, 1, N_("out of memory", ""));
        
        ret = krb5_cc_resolve(context, str, &id);
        if (ret)