s3 net: i18n for net join
authorKai Blin <kai@samba.org>
Thu, 30 Jul 2009 10:07:31 +0000 (12:07 +0200)
committerKai Blin <kai@samba.org>
Thu, 30 Jul 2009 10:07:31 +0000 (12:07 +0200)
source3/po/genmsg
source3/utils/net_join.c

index 87cd47dd37636bb2e48cbf12f22b7373e4b9b072..5dfff1521f5bcb81dfa112f3d86a82fa74bc2f4b 100755 (executable)
@@ -29,7 +29,7 @@ add_basedir_to_filelist() {
 NET_FILES=`add_basedir_to_filelist ../utils net.c net_ads.c net_ads_gpo.c \
           net_afs.c net_cache.c net_conf.c net_dom.c net_eventlog.c \
           net_file.c net_group.c net_groupmap.c net_help.c net_help_common.c \
-          net_idmap.c`
+          net_idmap.c net_join.c`
 
 FILES="../web/swat.c ../web/statuspage.c ../param/loadparm.c ${NET_FILES}"
 LANGS='en ja tr pl fr de it ru'
index 8d4d8c3e520dd0af9a19fa4895ed98c637d3dfe2..9e9ef2af065ce502949d7357632a70af9e9863f2 100644 (file)
 
 int net_join_usage(struct net_context *c, int argc, const char **argv)
 {
-       d_printf("\nnet [<method>] join [misc. options]\n"
-                "\tjoins this server to a domain\n");
-       d_printf("Valid methods: (auto-detected if not specified)\n");
-       d_printf("\tads\t\t\t\tActive Directory (LDAP/Kerberos)\n");
-       d_printf("\trpc\t\t\t\tDCE-RPC\n");
+       d_printf(_("\nnet [<method>] join [misc. options]\n"
+                  "\tjoins this server to a domain\n"));
+       d_printf(_("Valid methods: (auto-detected if not specified)\n"));
+       d_printf(_("\tads\t\t\t\tActive Directory (LDAP/Kerberos)\n"));
+       d_printf(_("\trpc\t\t\t\tDCE-RPC\n"));
        net_common_flags_usage(c, argc, argv);
        return -1;
 }
@@ -43,7 +43,9 @@ int net_join(struct net_context *c, int argc, const char **argv)
                if (net_ads_join(c, argc, argv) == 0)
                        return 0;
                else
-                       d_fprintf(stderr, "ADS join did not work, falling back to RPC...\n");
+                       d_fprintf(stderr,
+                                 _("ADS join did not work, falling back to "
+                                   "RPC...\n"));
        }
        return net_rpc_join(c, argc, argv);
 }