Description

If you update a previous installation of MoinMoin and do have configured a language which you have to install first then you get a traceback.html

This can be fixed by setting the default "builtin" language as always available

--- a/MoinMoin/i18n/__init__.py Tue Sep 23 00:54:46 2008 +0200
+++ b/MoinMoin/i18n/__init__.py Wed Sep 24 13:51:52 2008 +0200
@@ -329,7 +329,7 @@
     # is available on this wiki...
     lang = get_browser_language(request)
     if not lang:
-        available = wikiLanguages()
+        available = wikiLanguages() or ["en"]
         # Or return the wiki default language...
         if request.cfg.language_default in available:
             lang = request.cfg.language_default

Component selection

Details

MoinMoin Version

1.7.2

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/WikiLanguageNotDefined (last edited 2008-09-24 15:30:02 by ReimarBauer)