summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_rights.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_rpc_rights.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_rpc_rights.c')
-rw-r--r--source3/utils/net_rpc_rights.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source3/utils/net_rpc_rights.c b/source3/utils/net_rpc_rights.c
index fca73c0200..355a226198 100644
--- a/source3/utils/net_rpc_rights.c
+++ b/source3/utils/net_rpc_rights.c
@@ -413,8 +413,8 @@ static NTSTATUS rpc_rights_list_internal(struct net_context *c,
/* backward comaptibility: if no keyword provided, treat the key
as an account name */
if (argc > 1) {
- d_printf(_("Usage: net rpc rights list [[accounts|privileges] "
- "[name|SID]]\n"));
+ d_printf(_("Usage:")," net rpc rights list [[accounts|privileges] "
+ "[name|SID]]\n");
result = NT_STATUS_OK;
goto done;
}
@@ -451,7 +451,7 @@ static NTSTATUS rpc_rights_grant_internal(struct net_context *c,
DOM_SID sid;
if (argc < 2 ) {
- d_printf(_("Usage: net rpc rights grant <name|SID> "
+ d_printf(_("Usage:"),_(" net rpc rights grant <name|SID> "
"<rights...>\n"));
return NT_STATUS_OK;
}
@@ -521,7 +521,7 @@ static NTSTATUS rpc_rights_revoke_internal(struct net_context *c,
int i;
if (argc < 2 ) {
- d_printf(_("Usage: net rpc rights revoke <name|SID> "
+ d_printf(_("Usage:"),_(" net rpc rights revoke <name|SID> "
"<rights...>\n"));
return NT_STATUS_OK;
}
@@ -577,8 +577,8 @@ done:
static int rpc_rights_list(struct net_context *c, int argc, const char **argv )
{
if (c->display_usage) {
- d_printf(_("Usage:\n"
- "net rpc rights list [{accounts|privileges} "
+ d_printf(_("Usage:\n"),
+ _("net rpc rights list [{accounts|privileges} "
"[name|SID]]\n"
" View available/assigned privileges\n"));
return 0;
@@ -594,8 +594,8 @@ static int rpc_rights_list(struct net_context *c, int argc, const char **argv )
static int rpc_rights_grant(struct net_context *c, int argc, const char **argv )
{
if (c->display_usage) {
- d_printf(_("Usage:\n"
- "net rpc rights grant <name|SID> <right>\n"
+ d_printf(_("Usage:\n"),
+ _("net rpc rights grant <name|SID> <right>\n"
" Assign privilege[s]\n"));
d_printf(_("For example:\n"
" net rpc rights grant 'VALE\\biddle' "
@@ -615,8 +615,8 @@ static int rpc_rights_grant(struct net_context *c, int argc, const char **argv )
static int rpc_rights_revoke(struct net_context *c, int argc, const char **argv)
{
if (c->display_usage) {
- d_printf(_("Usage:\n"
- "net rpc rights revoke <name|SID> <right>\n"
+ d_printf(_("Usage:\n"),
+ _("net rpc rights revoke <name|SID> <right>\n"
" Revoke privilege[s]\n"));
d_printf(_("For example:\n"
" net rpc rights revoke 'VALE\\biddle' "