aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2008-03-03 10:06:28 -0800
committerMark Sapiro <mark@msapiro.net>2008-03-03 10:06:28 -0800
commitdd3ada936da9f0f24f41f113902d35b20e895086 (patch)
treeb0c69a1ecda5ca3d651b0dd28967aa48523f4b50
parentd14353a411404216f3d93d7397d91647b0959da5 (diff)
downloadmailman2-dd3ada936da9f0f24f41f113902d35b20e895086.tar.gz
mailman2-dd3ada936da9f0f24f41f113902d35b20e895086.tar.xz
mailman2-dd3ada936da9f0f24f41f113902d35b20e895086.zip
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).
Diffstat (limited to '')
-rw-r--r--NEWS4
-rwxr-xr-xbin/newlist6
2 files changed, 9 insertions, 1 deletions
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: