summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-01-05 09:43:34 +0100
committerKarolin Seeger <kseeger@samba.org>2010-01-06 11:23:12 +0100
commitb9d00a64d2f71a2b268ffdff4c8c918f44f8a749 (patch)
tree7e6b2d857892bc901c15106911dac2766e1b65c8 /source3/utils
parenta63b54a541c97d52c4f715f54415bf8695b6dd9f (diff)
downloadsamba-b9d00a64d2f71a2b268ffdff4c8c918f44f8a749.tar.gz
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. (cherry picked from commit 9a9d737070bfde62f2d5a35ad25606da578f9f7e) (cherry picked from commit dda309191e8927ffcea8724db1a65c422f90e6b9)
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 20fb66c2e04..4e326ba9020 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 6bb5a3836cb..2a42c87e2e3 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));
}
}