diff options
author | Björn Jacke <bj@sernet.de> | 2010-01-18 23:39:19 +0100 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2010-01-18 23:45:05 +0100 |
commit | bd3c922e2bc1a163efc1d8c9cb59578bebb79616 (patch) | |
tree | f23544c18ce2c0ac8e9ff4b4f0302e4172aa1794 /source3/utils/net_lookup.c | |
parent | c3ef7a3d96763719de1df679d50fb8a00d1f7391 (diff) | |
download | samba-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_lookup.c')
-rw-r--r-- | source3/utils/net_lookup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c index 21b2c4329e..b303abde56 100644 --- a/source3/utils/net_lookup.c +++ b/source3/utils/net_lookup.c @@ -109,7 +109,7 @@ static int net_lookup_ldap(struct net_context *c, int argc, const char **argv) sitename = sitename_fetch(domain); if ( (ctx = talloc_init("net_lookup_ldap")) == NULL ) { - d_fprintf(stderr,_("net_lookup_ldap: talloc_init() failed!\n")); + d_fprintf(stderr,"net_lookup_ldap: talloc_init() ",_("failed"),"!\n"); SAFE_FREE(sitename); return -1; } @@ -322,7 +322,7 @@ static int net_lookup_name(struct net_context *c, int argc, const char **argv) enum lsa_SidType type; if (argc != 1) { - d_printf(_("usage: net lookup name <name>\n")); + d_printf(_("Usage:"), _(" net lookup name <name>\n")); return -1; } @@ -344,7 +344,7 @@ static int net_lookup_sid(struct net_context *c, int argc, const char **argv) enum lsa_SidType type; if (argc != 1) { - d_printf(_("usage: net lookup sid <sid>\n")); + d_printf(_("Usage:"), _(" net lookup sid <sid>\n")); return -1; } @@ -375,7 +375,7 @@ static int net_lookup_dsgetdcname(struct net_context *c, int argc, const char ** char *s = NULL; if (argc < 1 || argc > 3) { - d_printf(_("usage: net lookup dsgetdcname " + d_printf(_("Usage:"), _(" net lookup dsgetdcname " "<name> <flags> <sitename>\n")); return -1; } |