From dd3ada936da9f0f24f41f113902d35b20e895086 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Mon, 3 Mar 2008 10:06:28 -0800 Subject: Fixed bin/newlist to add the list's preferred language to the list's available_languages if it is other than the server's default language (1906368). --- NEWS | 4 ++++ bin/newlist | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index e6cc5ac7..6684ddf2 100644 --- a/NEWS +++ b/NEWS @@ -158,6 +158,10 @@ Internationalization - Fixed the command line scripts add_members, sync_members and clone_member to properly handle banned addresses (1904737). + - Fixed bin/newlist to add the list's preferred language to the list's + available_languages if it is other than the server's default language + (1906368). + Miscellaneous - Brad Knowles' mailman daily status report script updated to 0.0.17. diff --git a/bin/newlist b/bin/newlist index 70e9cb8c..08b86e08 100755 --- a/bin/newlist +++ b/bin/newlist @@ -193,7 +193,11 @@ def main(): oldmask = os.umask(002) try: try: - mlist.Create(listname, owner_mail, pw) + if lang == mm_cfg.DEFAULT_SERVER_LANGUAGE: + langs = [lang] + else: + langs = [lang, mm_cfg.DEFAULT_SERVER_LANGUAGE] + mlist.Create(listname, owner_mail, pw, langs=langs) finally: os.umask(oldmask) except Errors.BadListNameError, s: -- cgit v1.2.3