From 77b96cc0bf1a077fd8b9cc28f90e1bdc1f50fff1 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Mon, 10 Aug 2009 19:54:27 +0200 Subject: s3 net: i18n support for net rpc samsync --- source3/utils/net_rpc_samsync.c | 50 ++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 23 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c index 309be171cc..d7a5bc15c3 100644 --- a/source3/utils/net_rpc_samsync.c +++ b/source3/utils/net_rpc_samsync.c @@ -156,13 +156,14 @@ NTSTATUS rpc_samdump_internals(struct net_context *c, int rpc_vampire_usage(struct net_context *c, int argc, const char **argv) { - d_printf("net rpc vampire ([ldif [] | [keytab] [] | [keytab] " + "[display_usage) { - d_printf("Usage:\n" - "net rpc vampire passdb\n" - " Dump remote SAM database to passdb\n"); + d_printf(_("Usage:\n" + "net rpc vampire passdb\n" + " Dump remote SAM database to passdb\n")); return 0; } @@ -332,9 +333,10 @@ NTSTATUS rpc_vampire_ldif_internals(struct net_context *c, int rpc_vampire_ldif(struct net_context *c, int argc, const char **argv) { if (c->display_usage) { - d_printf("Usage:\n" - "net rpc vampire ldif\n" - " Dump remote SAM database to LDIF file or stdout\n"); + d_printf(_("Usage:\n" + "net rpc vampire ldif\n" + " Dump remote SAM database to LDIF file or " + "stdout\n")); return 0; } @@ -475,9 +477,10 @@ int rpc_vampire_keytab(struct net_context *c, int argc, const char **argv) struct net_dc_info dc_info; if (c->display_usage || (argc < 1)) { - d_printf("Usage:\n" - "net rpc vampire keytab \n" - " Dump remote SAM database to Kerberos keytab file\n"); + d_printf(_("Usage:\n" + "net rpc vampire keytab \n" + " Dump remote SAM database to Kerberos keytab " + "file\n")); return 0; } @@ -492,7 +495,7 @@ int rpc_vampire_keytab(struct net_context *c, int argc, const char **argv) } if (!dc_info.is_ad) { - printf("DC is not running Active Directory\n"); + printf(_("DC is not running Active Directory\n")); ret = run_rpc_command(c, cli, &ndr_table_netlogon.syntax_id, 0, rpc_vampire_keytab_internals, argc, argv); @@ -502,7 +505,8 @@ int rpc_vampire_keytab(struct net_context *c, int argc, const char **argv) NET_FLAGS_SEAL, rpc_vampire_keytab_ds_internals, argc, argv); if (ret != 0 && dc_info.is_mixed_mode) { - printf("Fallback to NT4 vampire on Mixed-Mode AD Domain\n"); + printf(_("Fallback to NT4 vampire on Mixed-Mode AD " + "Domain\n")); ret = run_rpc_command(c, cli, &ndr_table_netlogon.syntax_id, 0, rpc_vampire_keytab_internals, argc, argv); -- cgit