summaryrefslogtreecommitdiff
path: root/source3/utils/net_afs.c
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2009-07-29 23:59:39 +0200
committerKai Blin <kai@samba.org>2009-07-29 23:59:39 +0200
commit358a55e50d0d9143ffdb2bc3df6701307c1fb3df (patch)
treeb6275f5b125db5463df0e0485ca740f84008b307 /source3/utils/net_afs.c
parentb429c3c5cbd83231027be9e6efc06e9da42d9114 (diff)
downloadsamba-358a55e50d0d9143ffdb2bc3df6701307c1fb3df.tar.gz
samba-358a55e50d0d9143ffdb2bc3df6701307c1fb3df.tar.bz2
samba-358a55e50d0d9143ffdb2bc3df6701307c1fb3df.zip
s3 net: i18n support for net cache
Diffstat (limited to 'source3/utils/net_afs.c')
-rw-r--r--source3/utils/net_afs.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/source3/utils/net_afs.c b/source3/utils/net_afs.c
index 0f19ec1e12..043be17b91 100644
--- a/source3/utils/net_afs.c
+++ b/source3/utils/net_afs.c
@@ -22,10 +22,10 @@
int net_afs_usage(struct net_context *c, int argc, const char **argv)
{
- d_printf(" net afs key filename\n"
- "\tImports a OpenAFS KeyFile into our secrets.tdb\n\n");
- d_printf(" net afs impersonate <user> <cell>\n"
- "\tCreates a token for user@cell\n\n");
+ d_printf(_(" net afs key filename\n"
+ "\tImports a OpenAFS KeyFile into our secrets.tdb\n\n"));
+ d_printf(_(" net afs impersonate <user> <cell>\n"
+ "\tCreates a token for user@cell\n\n"));
return -1;
}
@@ -35,27 +35,27 @@ int net_afs_key(struct net_context *c, int argc, const char **argv)
struct afs_keyfile keyfile;
if (argc != 2) {
- d_printf("usage: 'net afs key <keyfile> cell'\n");
+ d_printf(_("usage: 'net afs key <keyfile> cell'\n"));
return -1;
}
if (!secrets_init()) {
- d_fprintf(stderr, "Could not open secrets.tdb\n");
+ d_fprintf(stderr, _("Could not open secrets.tdb\n"));
return -1;
}
if ((fd = open(argv[0], O_RDONLY, 0)) < 0) {
- d_fprintf(stderr, "Could not open %s\n", argv[0]);
+ d_fprintf(stderr, _("Could not open %s\n", argv[0]));
return -1;
}
if (read(fd, &keyfile, sizeof(keyfile)) != sizeof(keyfile)) {
- d_fprintf(stderr, "Could not read keyfile\n");
+ d_fprintf(stderr, _("Could not read keyfile\n"));
return -1;
}
if (!secrets_store_afs_keyfile(argv[1], &keyfile)) {
- d_fprintf(stderr, "Could not write keyfile to secrets.tdb\n");
+ d_fprintf(stderr, _("Could not write keyfile to secrets.tdb\n"));
return -1;
}
@@ -68,23 +68,23 @@ int net_afs_impersonate(struct net_context *c, int argc,
char *token;
if (argc != 2) {
- fprintf(stderr, "Usage: net afs impersonate <user> <cell>\n");
+ fprintf(stderr, _("Usage: net afs impersonate <user> <cell>\n"));
exit(1);
}
token = afs_createtoken_str(argv[0], argv[1]);
if (token == NULL) {
- fprintf(stderr, "Could not create token\n");
+ fprintf(stderr, _("Could not create token\n"));
exit(1);
}
if (!afs_settoken_str(token)) {
- fprintf(stderr, "Could not set token into kernel\n");
+ fprintf(stderr, _("Could not set token into kernel\n"));
exit(1);
}
- printf("Success: %s@%s\n", argv[0], argv[1]);
+ printf(_("Success: %s@%s\n"), argv[0], argv[1]);
return 0;
}
@@ -95,17 +95,17 @@ int net_afs(struct net_context *c, int argc, const char **argv)
"key",
net_afs_key,
NET_TRANSPORT_LOCAL,
- "Import an OpenAFS keyfile",
- "net afs key <filename>\n"
- " Import kefile from <filename>."
+ N_("Import an OpenAFS keyfile"),
+ N_("net afs key <filename>\n"
+ " Import kefile from <filename>.")
},
{
"impersonate",
net_afs_impersonate,
NET_TRANSPORT_LOCAL,
- "Get a user token",
- "net afs impersonate <user> <cell>\n"
- " Create token for user@cell"
+ N_("Get a user token"),
+ N_("net afs impersonate <user> <cell>\n"
+ " Create token for user@cell")
},
{NULL, NULL, 0, NULL, NULL}
};