From bd3c922e2bc1a163efc1d8c9cb59578bebb79616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= Date: Mon, 18 Jan 2010 23:39:19 +0100 Subject: 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. --- source3/utils/net_rpc_registry.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'source3/utils/net_rpc_registry.c') diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c index aa3a13208cb..dc3d54999c0 100644 --- a/source3/utils/net_rpc_registry.c +++ b/source3/utils/net_rpc_registry.c @@ -471,7 +471,7 @@ static int rpc_registry_setvalue(struct net_context *c, int argc, const char **argv ) { if (argc < 4 || c->display_usage) { - d_fprintf(stderr, _("usage: net rpc registry setvalue " + d_fprintf(stderr, _("usage:"),_(" net rpc registry setvalue " " []+\n")); return -1; } @@ -524,7 +524,7 @@ static int rpc_registry_deletevalue(struct net_context *c, int argc, const char **argv ) { if (argc != 2 || c->display_usage) { - d_fprintf(stderr, _("usage: net rpc registry deletevalue " + d_fprintf(stderr, _("usage:"),_(" net rpc registry deletevalue " "\n")); return -1; } @@ -639,7 +639,7 @@ static int rpc_registry_getvalue(struct net_context *c, int argc, const char **argv) { if (argc != 2 || c->display_usage) { - d_fprintf(stderr, _("usage: net rpc registry getvalue " + d_fprintf(stderr, _("usage:"),_(" net rpc registry getvalue " "\n")); return -1; } @@ -666,7 +666,7 @@ static int rpc_registry_getvalueraw(struct net_context *c, int argc, const char **argv) { if (argc != 2 || c->display_usage) { - d_fprintf(stderr, _("usage: net rpc registry getvalue " + d_fprintf(stderr, _("usage:"),_(" net rpc registry getvalue " "\n")); return -1; } @@ -740,7 +740,7 @@ static int rpc_registry_createkey(struct net_context *c, int argc, { if (argc != 1 || c->display_usage) { d_fprintf(stderr, - _("usage: net rpc registry createkey \n")); + _("usage:"),_(" net rpc registry createkey \n")); return -1; } @@ -790,7 +790,7 @@ static int rpc_registry_deletekey(struct net_context *c, int argc, const char ** { if (argc != 1 || c->display_usage) { d_fprintf(stderr, - _("usage: net rpc registry deletekey \n")); + _("usage:"),_(" net rpc registry deletekey \n")); return -1; } @@ -820,9 +820,9 @@ static NTSTATUS rpc_registry_enumerate_internal(struct net_context *c, struct registry_value **values = NULL; if (argc != 1 || c->display_usage) { - d_printf(_("Usage: net rpc registry enumerate \n")); - d_printf(_("Example: net rpc registry enumerate " - "'HKLM\\Software\\Samba'\n")); + d_printf(_("Usage:"),_(" net rpc registry enumerate \n")); + d_printf(_("Example:")," net rpc registry enumerate " + "'HKLM\\Software\\Samba'\n"); return NT_STATUS_INVALID_PARAMETER; } @@ -892,7 +892,7 @@ static NTSTATUS rpc_registry_save_internal(struct net_context *c, struct winreg_String filename; if (argc != 2 || c->display_usage) { - d_printf(_("Usage: net rpc registry backup " + d_printf(_("Usage:"),_(" net rpc registry backup " " \n")); return NT_STATUS_INVALID_PARAMETER; } @@ -1080,7 +1080,7 @@ static int rpc_registry_dump(struct net_context *c, int argc, const char **argv) REGF_NK_REC *nk; if (argc != 1 || c->display_usage) { - d_printf(_("Usage: net rpc registry dump \n")); + d_printf(_("Usage:"),_(" net rpc registry dump \n")); return -1; } @@ -1124,7 +1124,7 @@ static int rpc_registry_copy(struct net_context *c, int argc, const char **argv int result = 1; if (argc != 2 || c->display_usage) { - d_printf(_("Usage: net rpc registry copy " + d_printf(_("Usage:"),_(" net rpc registry copy " "\n")); return -1; } @@ -1196,10 +1196,10 @@ static NTSTATUS rpc_registry_getsd_internal(struct net_context *c, SEC_FLAG_SYSTEM_SECURITY; if (argc <1 || argc > 2 || c->display_usage) { - d_printf(_("Usage: net rpc registry getsd " + d_printf(_("Usage:"),_(" net rpc registry getsd " "\n")); - d_printf(_("Example: net rpc registry getsd " - "'HKLM\\Software\\Samba'\n")); + d_printf(_("Example:")," net rpc registry getsd " + "'HKLM\\Software\\Samba'\n"); return NT_STATUS_INVALID_PARAMETER; } -- cgit v1.2.1