changeset 2215:c00b5f8d211f

use cfg.language_default (e.g. for stemming with xapian search) if page does not specify its language
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 26 May 2007 16:53:46 +0200
parents 57c403f5f075
children 28d8d384d24d
files MoinMoin/Page.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/Page.py	Sat May 26 15:48:09 2007 +0200
+++ b/MoinMoin/Page.py	Sat May 26 16:53:46 2007 +0200
@@ -902,6 +902,8 @@
         # default is wiki markup
         pi['format'] = self.cfg.default_markup or "wiki"
         pi['formatargs'] = ''
+        # default language from cfg
+        pi['language'] = self.cfg.language_default or "en"
         pi['lines'] = len(meta)
         acl = []