s3 net: i18n support for net share
authorKai Blin <kai@samba.org>
Tue, 11 Aug 2009 06:32:10 +0000 (08:32 +0200)
committerKai Blin <kai@samba.org>
Tue, 11 Aug 2009 07:34:24 +0000 (09:34 +0200)
source3/locale/net/genmsg
source3/utils/net_share.c

index 1172b6861fa6b37e8550cec24c35457ed22afe02..14cbf4e47c4c9ce4c5c8f05ba3bf82a42d61bdd4 100755 (executable)
@@ -32,7 +32,7 @@ FILES=`add_basedir_to_filelist ../../utils net.c net_ads.c net_ads_gpo.c \
        net_join.c net_lookup.c net_lua.c net_rap.c net_registry.c \
        net_registry_util.c net_rpc.c net_rpc_audit.c net_rpc_join.c \
        net_rpc_printer.c net_rpc_registry.c net_rpc_rights.c net_rpc_samsync.c \
-       net_rpc_service.c net_rpc_sh_acct.c net_rpc_shell.c net_sam.c`
+       net_rpc_service.c net_rpc_sh_acct.c net_rpc_shell.c net_sam.c net_share.c`
 
 LANGS="af ar bg bn bs ca cs cy da de el en_GB en_US es et fi fr gl gu he hi hr
        hu id it ja ka km ko lo lt mk mr nb nl pa pl pt_BR pt ro ru si sk sl sr
index 68fcd3b3bd0ba33c5804be98982eff711f428ea9..db06b7d35a558c35f25f53556c9aa4d7d31943f2 100644 (file)
@@ -23,7 +23,7 @@
 
 int net_share_usage(struct net_context *c, int argc, const char **argv)
 {
-       d_printf(
+       d_printf(_(
         "\nnet [<method>] share [misc. options] [targets] \n"
         "\tenumerates all exported resources (network shares) "
         "on target server\n\n"
@@ -45,10 +45,10 @@ int net_share_usage(struct net_context *c, int argc, const char **argv)
         "net [<method>] share MIGRATE ALL <sharename> [misc. options] [targets]"
         "\n\tMigrates shares (including directories, files) from remote\n"
         "\tto local server\n\n"
-       );
+        ));
        net_common_methods_usage(c, argc, argv);
        net_common_flags_usage(c, argc, argv);
-       d_printf(
+       d_printf(_(
         "\t-C or --comment=<comment>\tdescriptive comment (for add only)\n"
         "\t-M or --maxusers=<num>\t\tmax users allowed for share\n"
         "\t      --acls\t\t\tcopies ACLs as well\n"
@@ -56,7 +56,7 @@ int net_share_usage(struct net_context *c, int argc, const char **argv)
         "\t      --timestamps\t\tpreserve timestamps while copying files\n"
         "\t      --destination\t\tmigration target server (default: localhost)\n"
         "\t-e or --exclude\t\t\tlist of shares to be excluded from mirroring\n"
-        "\t-v or --verbose\t\t\tgive verbose output\n");
+        "\t-v or --verbose\t\t\tgive verbose output\n"));
        return -1;
 }