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_idmap.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_idmap.c')
-rw-r--r-- | source3/utils/net_idmap.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/source3/utils/net_idmap.c b/source3/utils/net_idmap.c index 5a380da02f..7ad655bd4e 100644 --- a/source3/utils/net_idmap.c +++ b/source3/utils/net_idmap.c @@ -17,6 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#define FOO(x) (x) #include "includes.h" #include "utils/net.h" @@ -60,8 +61,8 @@ static int net_idmap_dump(struct net_context *c, int argc, const char **argv) TDB_CONTEXT *idmap_tdb; if ( argc != 1 || c->display_usage) { - d_printf(_("Usage:\n" - "net idmap dump <inputfile>\n" + d_printf(_("Usage:\n"), + _("net idmap dump <inputfile>\n" " Dump current ID mapping.\n" " inputfile\tTDB file to read mappings from.\n")); return c->display_usage?0:-1; @@ -91,8 +92,8 @@ static int net_idmap_restore(struct net_context *c, int argc, const char **argv) FILE *input; if (c->display_usage) { - d_printf(_("Usage:\n" - "net idmap restore [inputfile]\n" + d_printf(_("Usage:\n"), + _("net idmap restore [inputfile]\n" " Restore ID mappings from file\n" " inputfile\tFile to load ID mappings from. If " "not given, load data from stdin.\n")); @@ -193,13 +194,13 @@ static int net_idmap_restore(struct net_context *c, int argc, const char **argv) **********************************************************/ static int net_idmap_delete(struct net_context *c, int argc, const char **argv) { - d_printf(_("Not Implemented yet\n")); + d_printf(_("Not implemented yet"),"\n"); return -1; } static int net_idmap_set(struct net_context *c, int argc, const char **argv) { - d_printf(_("Not Implemented yet\n")); + d_printf(_("Not implemented yet"),"\n"); return -1; } bool idmap_store_secret(const char *backend, bool alloc, @@ -237,8 +238,8 @@ static int net_idmap_secret(struct net_context *c, int argc, const char **argv) bool ret; if (argc != 2 || c->display_usage) { - d_printf(_("Usage:\n" - "net idmap secret {<DOMAIN>|alloc} <secret>\n" + d_printf(_("Usage:\n"), + _("net idmap secret {<DOMAIN>|alloc} <secret>\n" " Set the secret for the specified domain " "(or alloc module)\n" " DOMAIN\tDomain to set secret for.\n" @@ -336,8 +337,8 @@ static int net_idmap_aclmapset(struct net_context *c, int argc, const char **arg NTSTATUS status; if (argc != 3 || c->display_usage) { - d_fprintf(stderr, _("usage: net idmap aclmapset <tdb> " - "<src-sid> <dst-sid>\n")); + d_fprintf(stderr, _("usage:")," net idmap aclmapset <tdb> " + "<src-sid> <dst-sid>\n"); return -1; } |