diff options
author | Kai Blin <kai@samba.org> | 2009-07-30 09:10:03 +0200 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2009-07-30 09:10:03 +0200 |
commit | bdb23c73d90c9a218fa39af114b900f1d8dd2c51 (patch) | |
tree | 88152f44cfdcdae9249e83dfa9d795e4a26f7663 | |
parent | 51f9d1ecd53f490f2a7383a7e1931ce6d9933e21 (diff) | |
download | samba-bdb23c73d90c9a218fa39af114b900f1d8dd2c51.tar.gz samba-bdb23c73d90c9a218fa39af114b900f1d8dd2c51.tar.bz2 samba-bdb23c73d90c9a218fa39af114b900f1d8dd2c51.zip |
s3 net: i18n support for net dom
-rwxr-xr-x | source3/po/genmsg | 2 | ||||
-rw-r--r-- | source3/utils/net_dom.c | 64 |
2 files changed, 33 insertions, 33 deletions
diff --git a/source3/po/genmsg b/source3/po/genmsg index cbc2722e4b..03f771ae14 100755 --- a/source3/po/genmsg +++ b/source3/po/genmsg @@ -16,7 +16,7 @@ # NET_FILES="../utils/net.c ../utils/net_ads.c ../utils/net_ads_gpo.c" NET_FILES="${NET_FILES} ../utils/net_afs.c ../utils/net_cache.c" -NET_FILES="${NET_FILES} ../utils/net_conf.c" +NET_FILES="${NET_FILES} ../utils/net_conf.c ../utils/net_dom.c" FILES="../web/swat.c ../web/statuspage.c ../param/loadparm.c ${NET_FILES}" LANGS='en ja tr pl fr de it ru' diff --git a/source3/utils/net_dom.c b/source3/utils/net_dom.c index 401079777f..433fb6c671 100644 --- a/source3/utils/net_dom.c +++ b/source3/utils/net_dom.c @@ -22,16 +22,16 @@ int net_dom_usage(struct net_context *c, int argc, const char **argv) { - d_printf("usage: net dom join " - "<domain=DOMAIN> <ou=OU> <account=ACCOUNT> " - "<password=PASSWORD> <reboot>\n Join a remote machine\n"); - d_printf("usage: net dom unjoin " - "<account=ACCOUNT> <password=PASSWORD> <reboot>\n" - " Unjoin a remote machine\n"); - d_printf("usage: net dom renamecomputer " - "<newname=NEWNAME> " - "<account=ACCOUNT> <password=PASSWORD> <reboot>\n" - " Rename joined computer\n"); + d_printf(_("usage: net dom join " + "<domain=DOMAIN> <ou=OU> <account=ACCOUNT> " + "<password=PASSWORD> <reboot>\n Join a remote machine\n")); + d_printf(_("usage: net dom unjoin " + "<account=ACCOUNT> <password=PASSWORD> <reboot>\n" + " Unjoin a remote machine\n")); + d_printf(_("usage: net dom renamecomputer " + "<newname=NEWNAME> " + "<account=ACCOUNT> <password=PASSWORD> <reboot>\n" + " Rename joined computer\n")); return -1; } @@ -88,14 +88,14 @@ static int net_dom_unjoin(struct net_context *c, int argc, const char **argv) status = NetUnjoinDomain(server_name, account, password, unjoin_flags); if (status != 0) { - printf("Failed to unjoin domain: %s\n", + printf(_("Failed to unjoin domain: %s\n"), libnetapi_get_error_string(c->netapi_ctx, status)); goto done; } if (do_reboot) { - c->opt_comment = "Shutting down due to a domain membership " - "change"; + c->opt_comment = _("Shutting down due to a domain membership " + "change"); c->opt_reboot = true; c->opt_timeout = 30; @@ -195,14 +195,14 @@ static int net_dom_join(struct net_context *c, int argc, const char **argv) status = NetJoinDomain(server_name, domain_name, account_ou, Account, password, join_flags); if (status != 0) { - printf("Failed to join domain: %s\n", + printf(_("Failed to join domain: %s\n"), libnetapi_get_error_string(c->netapi_ctx, status)); goto done; } if (do_reboot) { - c->opt_comment = "Shutting down due to a domain membership " - "change"; + c->opt_comment = _("Shutting down due to a domain membership " + "change"); c->opt_reboot = true; c->opt_timeout = 30; @@ -287,9 +287,9 @@ static int net_dom_renamecomputer(struct net_context *c, int argc, const char ** status = NetRenameMachineInDomain(server_name, newname, account, password, rename_options); if (status != 0) { - printf("Failed to rename machine: "); + printf(_("Failed to rename machine: ")); if (status == W_ERROR_V(WERR_SETUP_NOT_JOINED)) { - printf("Computer is not joined to a Domain\n"); + printf(_("Computer is not joined to a Domain\n")); goto done; } printf("%s\n", @@ -298,7 +298,7 @@ static int net_dom_renamecomputer(struct net_context *c, int argc, const char ** } if (do_reboot) { - c->opt_comment = "Shutting down due to a computer rename"; + c->opt_comment = _("Shutting down due to a computer rename"); c->opt_reboot = true; c->opt_timeout = 30; @@ -335,29 +335,29 @@ int net_dom(struct net_context *c, int argc, const char **argv) "join", net_dom_join, NET_TRANSPORT_LOCAL, - "Join a remote machine", - "net dom join <domain=DOMAIN> <ou=OU> " - "<account=ACCOUNT> <password=PASSWORD> <reboot>\n" - " Join a remote machine" + N_("Join a remote machine"), + N_("net dom join <domain=DOMAIN> <ou=OU> " + "<account=ACCOUNT> <password=PASSWORD> <reboot>\n" + " Join a remote machine") }, { "unjoin", net_dom_unjoin, NET_TRANSPORT_LOCAL, - "Unjoin a remote machine", - "net dom unjoin <account=ACCOUNT> <password=PASSWORD> " - "<reboot>\n" - " Unjoin a remote machine" + N_("Unjoin a remote machine"), + N_("net dom unjoin <account=ACCOUNT> " + "<password=PASSWORD> <reboot>\n" + " Unjoin a remote machine") }, { "renamecomputer", net_dom_renamecomputer, NET_TRANSPORT_LOCAL, - "Rename a computer that is joined to a domain", - "net dom renamecomputer <newname=NEWNAME> " - "<account=ACCOUNT> <password=PASSWORD> " - "<reboot>\n" - " Rename joined computer" + N_("Rename a computer that is joined to a domain"), + N_("net dom renamecomputer <newname=NEWNAME> " + "<account=ACCOUNT> <password=PASSWORD> " + "<reboot>\n" + " Rename joined computer") }, {NULL, NULL, 0, NULL, NULL} |