--- newlist.orig Tue Jun 22 12:04:26 1999 +++ newlist Wed Jun 30 16:54:40 1999 @@ -32,6 +32,16 @@ import sys, os, string import time import paths # path hacking +# intl +# fabio@conectiva.com.br +# qua jun 30 16:20:55 EST 1999 + +import intl + +_=intl.gettext +intl.textdomain("mailman") +intl.bindtextdomain("mailman","/usr/share/locale") + try: import getpass except ImportError: @@ -58,7 +68,7 @@ if len(argv) > 1: list_name = argv[1] else: - list_name = raw_input("Enter the name of the list: ") + list_name = raw_input(_("Enter the name of the list: ")) list_name = string.lower(list_name) if '@' in list_name: @@ -74,12 +84,12 @@ if len(argv) > 2: owner_mail = argv[2] else: - owner_mail = raw_input( - "Enter the email of the person running the list: ") + owner_mail = raw_input(_( + "Enter the email of the person running the list: ")) if len(argv) > 3: list_pw = argv[3] else: - list_pw = getpass.getpass("Initial %s password: " % list_name) + list_pw = getpass.getpass(_("Initial %s password: ") % list_name) newlist = MailList.MailList() pw = crypt(list_pw , Utils.GetRandomSeed()) @@ -94,7 +104,7 @@ ###os.system('%s %s' % (ADDALIASES_CMD, list_name)) print ''' -Entry for aliases file: +_("Entry for aliases file:") ## %(listname)s mailing list ## created: %(date)s %(user)s @@ -115,7 +125,7 @@ } if len(argv) < 5: - print ("Hit enter to continue with %s owner notification..." + print (_("Hit enter to continue with %s owner notification...") % list_name), sys.stdin.readline() sendnotice(newlist, list_name, owner_mail, list_pw) @@ -132,7 +142,7 @@ 'requestaddr' : "%s-request@%s" % (list_name, newlist.host_name), 'hostname' : newlist.host_name, }) - newlist.SendTextToUser(subject="Your new mailing list", + newlist.SendTextToUser(subject=_("Your new mailing list "), recipient=owner_mail, sender='mailman-owner@%s' % newlist.host_name, text=text)