From bd3c922e2bc1a163efc1d8c9cb59578bebb79616 Mon Sep 17 00:00:00 2001 From: Björn Jacke 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_ads_gpo.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'source3/utils/net_ads_gpo.c') diff --git a/source3/utils/net_ads_gpo.c b/source3/utils/net_ads_gpo.c index 5f8921a904..2203f362e9 100644 --- a/source3/utils/net_ads_gpo.c +++ b/source3/utils/net_ads_gpo.c @@ -37,9 +37,9 @@ static int net_ads_gpo_refresh(struct net_context *c, int argc, const char **arg struct nt_user_token *token = NULL; if (argc < 1 || c->display_usage) { - d_printf(_("Usage:\n" - "net ads gpo refresh \n" - " Lists all GPOs assigned to an account and " + d_printf(_("Usage:\n"), + _("net ads gpo refresh \n"), + _(" Lists all GPOs assigned to an account and " "downloads them\n" " username\tUser to refresh GPOs for\n" " machinename\tMachine to refresh GPOs for\n")); @@ -223,9 +223,9 @@ static int net_ads_gpo_list_all(struct net_context *c, int argc, const char **ar }; if (c->display_usage) { - d_printf(_("Usage:\n" + d_printf(_("Usage:\n"), "net ads gpo listall\n" - " List all GPOs on the DC\n")); + " ", _("List all GPOs on the DC\n")); return 0; } @@ -297,9 +297,9 @@ static int net_ads_gpo_list(struct net_context *c, int argc, const char **argv) struct nt_user_token *token = NULL; if (argc < 1 || c->display_usage) { - d_printf(_("Usage:\n" - "net ads gpo list \n" - " Lists all GPOs for machine/user\n" + d_printf(_("Usage:\n"), + _("net ads gpo list \n"), + _(" Lists all GPOs for machine/user\n" " username\tUser to list GPOs for\n" " machinename\tMachine to list GPOs for\n")); return -1; @@ -448,9 +448,9 @@ static int net_ads_gpo_link_get(struct net_context *c, int argc, const char **ar struct GP_LINK gp_link; if (argc < 1 || c->display_usage) { - d_printf(_("Usage:\n" - "net ads gpo linkget \n" - " Lists gPLink of a containter\n" + d_printf(_("Usage:\n"), + _("net ads gpo linkget \n"), + _(" Lists gPLink of a containter\n" " container\tContainer to get link for\n")); return -1; } @@ -489,9 +489,9 @@ static int net_ads_gpo_link_add(struct net_context *c, int argc, const char **ar TALLOC_CTX *mem_ctx; if (argc < 2 || c->display_usage) { - d_printf(_("Usage:\n" - "net ads gpo linkadd [options]\n" - " Link a container to a GPO\n" + d_printf(_("Usage:\n"), + _("net ads gpo linkadd [options]\n"), + _(" Link a container to a GPO\n" " linkdn\tContainer to link to a GPO\n" " gpodn\tGPO to link container to\n")); d_printf(_("note: DNs must be provided properly escaped.\n" @@ -576,9 +576,9 @@ static int net_ads_gpo_get_gpo(struct net_context *c, int argc, const char **arg struct GROUP_POLICY_OBJECT gpo; if (argc < 1 || c->display_usage) { - d_printf(_("Usage:\n" - "net ads gpo getgpo \n" - " List speciefied GPO\n" + d_printf(_("Usage:\n"), + _("net ads gpo getgpo \n"), + _(" List speciefied GPO\n" " gpo\t\tGPO to list\n")); return -1; } -- cgit