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_conf.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'source3/utils/net_conf.c') 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] " + d_printf(_("Usage:"), _(" net conf import [--test|-T] " "[]\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 \n")); + d_printf(_("Usage:"), _(" net conf showshare \n")); return -1; } static int net_conf_addshare_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf addshare " + d_printf(_("Usage:"), _(" net conf addshare " "[writeable={y|N} [guest_ok={y|N} []]\n" "\t the new share name.\n" "\t 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 \n")); + d_printf(_("Usage: "), _(" net conf delshare \n")); return -1; } static int net_conf_setparm_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf setparm
\n")); + d_printf(_("Usage:"), _(" net conf setparm
\n")); return -1; } static int net_conf_getparm_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf getparm
\n")); + d_printf(_("Usage:"), _(" net conf getparm
\n")); return -1; } static int net_conf_delparm_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf delparm
\n")); + d_printf(_("Usage:"), _(" net conf delparm
\n")); return -1; } static int net_conf_getincludes_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf getincludes
\n")); + d_printf(_("Usage:"), _(" net conf getincludes
\n")); return -1; } static int net_conf_setincludes_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf setincludes
[]*\n")); + d_printf(_("Usage:"), _(" net conf setincludes
[]*\n")); return -1; } static int net_conf_delincludes_usage(struct net_context *c, int argc, const char **argv) { - d_printf(_("USAGE: net conf delincludes
\n")); + d_printf(_("Usage:"), _(" net conf delincludes
\n")); return -1; } -- cgit