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_conf.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_conf.c')
-rw-r--r-- | source3/utils/net_conf.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c index 106a53246d..9a83b46212 100644 --- a/source3/utils/net_conf.c +++ b/source3/utils/net_conf.c @@ -39,14 +39,14 @@ static int net_conf_list_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf list\n")); + d_printf(_("Usage:"), " net conf list\n"); return -1; } static int net_conf_import_usage(struct net_context *c, int argc, const char**argv) { - d_printf(_("USAGE: net conf import [--test|-T] <filename> " + d_printf(_("Usage:"), _(" net conf import [--test|-T] <filename> " "[<servicename>]\n" "\t[--test|-T] testmode - do not act, just print " "what would be done\n" @@ -58,28 +58,28 @@ static int net_conf_import_usage(struct net_context *c, int argc, static int net_conf_listshares_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf listshares\n")); + d_printf(_("Usage:"), " net conf listshares\n"); return -1; } static int net_conf_drop_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf drop\n")); + d_printf(_("Usage:"), " net conf drop\n"); return -1; } static int net_conf_showshare_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf showshare <sharename>\n")); + d_printf(_("Usage:"), _(" net conf showshare <sharename>\n")); return -1; } static int net_conf_addshare_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf addshare <sharename> <path> " + d_printf(_("Usage:"), _(" net conf addshare <sharename> <path> " "[writeable={y|N} [guest_ok={y|N} [<comment>]]\n" "\t<sharename> the new share name.\n" "\t<path> the path on the filesystem to export.\n" @@ -94,49 +94,49 @@ static int net_conf_addshare_usage(struct net_context *c, int argc, static int net_conf_delshare_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf delshare <sharename>\n")); + d_printf(_("Usage: "), _(" net conf delshare <sharename>\n")); return -1; } static int net_conf_setparm_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf setparm <section> <param> <value>\n")); + d_printf(_("Usage:"), _(" net conf setparm <section> <param> <value>\n")); return -1; } static int net_conf_getparm_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf getparm <section> <param>\n")); + d_printf(_("Usage:"), _(" net conf getparm <section> <param>\n")); return -1; } static int net_conf_delparm_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf delparm <section> <param>\n")); + d_printf(_("Usage:"), _(" net conf delparm <section> <param>\n")); return -1; } static int net_conf_getincludes_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf getincludes <section>\n")); + d_printf(_("Usage:"), _(" net conf getincludes <section>\n")); return -1; } static int net_conf_setincludes_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf setincludes <section> [<filename>]*\n")); + d_printf(_("Usage:"), _(" net conf setincludes <section> [<filename>]*\n")); return -1; } static int net_conf_delincludes_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf delincludes <section>\n")); + d_printf(_("Usage:"), _(" net conf delincludes <section>\n")); return -1; } |