summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-01-05 09:43:34 +0100
committerKai Blin <kai@samba.org>2010-01-05 09:55:52 +0100
commit9a9d737070bfde62f2d5a35ad25606da578f9f7e (patch)
tree48f7e1198fe82a081d86af40b5c9cc4990c9eef0 /source3/utils
parent2a66db8f93d18a88a8da7201b131b01c45ace36d (diff)
downloadsamba-9a9d737070bfde62f2d5a35ad25606da578f9f7e.tar.gz
samba-9a9d737070bfde62f2d5a35ad25606da578f9f7e.tar.bz2
samba-9a9d737070bfde62f2d5a35ad25606da578f9f7e.zip
s3 net: Add a few missing gettext calls.
Many many thanks to Adi Roiban from #ubuntu-translators for helping me find and fix my problems with the translations.
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_help.c4
-rw-r--r--source3/utils/net_util.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/source3/utils/net_help.c b/source3/utils/net_help.c
index 20fb66c2e0..4e326ba902 100644
--- a/source3/utils/net_help.c
+++ b/source3/utils/net_help.c
@@ -37,10 +37,10 @@ static int net_usage(struct net_context *c, int argc, const char **argv)
for (i=0; table[i].funcname != NULL; i++) {
if (c->display_usage) {
d_printf(_("net %s usage:\n"), table[i].funcname);
- d_printf("\n%s\n\n", table[i].usage);
+ d_printf("\n%s\n\n", _(table[i].usage));
} else {
d_printf("%s %-15s %s\n", "net", table[i].funcname,
- table[i].description);
+ _(table[i].description));
}
}
diff --git a/source3/utils/net_util.c b/source3/utils/net_util.c
index 6bb5a3836c..2a42c87e2e 100644
--- a/source3/utils/net_util.c
+++ b/source3/utils/net_util.c
@@ -583,13 +583,13 @@ int net_run_function(struct net_context *c, int argc, const char **argv,
d_fprintf(stderr, _("Invalid command: %s %s\n"), whoami,
(argc > 0)?argv[0]:"");
}
- d_printf("Usage:\n");
+ d_printf(_("Usage:\n"));
for (i=0; table[i].funcname != NULL; i++) {
if(c->display_usage == false)
d_printf("%s %-15s %s\n", whoami, table[i].funcname,
- table[i].description);
+ _(table[i].description));
else
- d_printf("%s\n", table[i].usage);
+ d_printf("%s\n", _(table[i].usage));
}
return c->display_usage?0:-1;
@@ -599,7 +599,7 @@ void net_display_usage_from_functable(struct functable *table)
{
int i;
for (i=0; table[i].funcname != NULL; i++) {
- d_printf("%s\n", table[i].usage);
+ d_printf("%s\n", _(table[i].usage));
}
}