summaryrefslogtreecommitdiff
path: root/source3/utils/net.c
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-01-18 23:39:19 +0100
committerBjörn Jacke <bj@sernet.de>2010-01-18 23:45:05 +0100
commitbd3c922e2bc1a163efc1d8c9cb59578bebb79616 (patch)
treef23544c18ce2c0ac8e9ff4b4f0302e4172aa1794 /source3/utils/net.c
parentc3ef7a3d96763719de1df679d50fb8a00d1f7391 (diff)
downloadsamba-bd3c922e2bc1a163efc1d8c9cb59578bebb79616.tar.gz
samba-bd3c922e2bc1a163efc1d8c9cb59578bebb79616.tar.bz2
samba-bd3c922e2bc1a163efc1d8c9cb59578bebb79616.zip
s3/net: split up some printable stings to ease i18n
If we put strings like "Usage:" into separate _() macros and not the whole "Usage:..." string we can cover much more messages by only one single translation. The drawback is that the message in the sources looks less pretty.
Diffstat (limited to 'source3/utils/net.c')
-rw-r--r--source3/utils/net.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index e8920e0b02..c0bffe27f9 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -277,7 +277,7 @@ static int net_setlocalsid(struct net_context *c, int argc, const char **argv)
|| (strncmp(argv[0], "S-1-5-21-", strlen("S-1-5-21-")) != 0)
|| (!string_to_sid(&sid, argv[0]))
|| (sid.num_auths != 4)) {
- d_printf(_("usage: net setlocalsid S-1-5-21-x-y-z\n"));
+ d_printf(_("usage:")," net setlocalsid S-1-5-21-x-y-z\n");
return 1;
}
@@ -297,7 +297,7 @@ static int net_setdomainsid(struct net_context *c, int argc, const char **argv)
|| (strncmp(argv[0], "S-1-5-21-", strlen("S-1-5-21-")) != 0)
|| (!string_to_sid(&sid, argv[0]))
|| (sid.num_auths != 4)) {
- d_printf(_("usage: net setdomainsid S-1-5-21-x-y-z\n"));
+ d_printf(_("usage:")," net setdomainsid S-1-5-21-x-y-z\n");
return 1;
}
@@ -315,7 +315,7 @@ static int net_getdomainsid(struct net_context *c, int argc, const char **argv)
fstring sid_str;
if (argc > 0) {
- d_printf(_("usage: net getdomainsid\n"));
+ d_printf(_("usage:")," net getdomainsid\n");
return 1;
}
@@ -399,7 +399,7 @@ static int net_maxrid(struct net_context *c, int argc, const char **argv)
uint32 rid;
if (argc != 0) {
- d_fprintf(stderr, _("usage: net maxrid\n"));
+ d_fprintf(stderr, _("usage:")," net maxrid\n");
return 1;
}