summaryrefslogtreecommitdiff
path: root/source3/utils/net_ads_gpo.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_ads_gpo.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_ads_gpo.c')
-rw-r--r--source3/utils/net_ads_gpo.c34
1 files changed, 17 insertions, 17 deletions
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 <username|machinename>\n"
- " Lists all GPOs assigned to an account and "
+ d_printf(_("Usage:\n"),
+ _("net ads gpo refresh <username|machinename>\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 <username|machinename>\n"
- " Lists all GPOs for machine/user\n"
+ d_printf(_("Usage:\n"),
+ _("net ads gpo list <username|machinename>\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 <container>\n"
- " Lists gPLink of a containter\n"
+ d_printf(_("Usage:\n"),
+ _("net ads gpo linkget <container>\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 <linkdn> <gpodn> [options]\n"
- " Link a container to a GPO\n"
+ d_printf(_("Usage:\n"),
+ _("net ads gpo linkadd <linkdn> <gpodn> [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 <gpo>\n"
- " List speciefied GPO\n"
+ d_printf(_("Usage:\n"),
+ _("net ads gpo getgpo <gpo>\n"),
+ _(" List speciefied GPO\n"
" gpo\t\tGPO to list\n"));
return -1;
}