changeset 4062:e5778919c0a2

translation dict page names: remove blanks so the pagename is matched by the page_dict_regex (or dict for e.g. language 'Norwegian Bokmal' won't work)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 31 Aug 2008 23:03:58 +0200
parents fd35b36d6282
children d996f53790bb
files MoinMoin/i18n/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/i18n/__init__.py	Sun Aug 31 22:14:02 2008 +0200
+++ b/MoinMoin/i18n/__init__.py	Sun Aug 31 23:03:58 2008 +0200
@@ -279,7 +279,7 @@
     else:
         try:
             language = languages[lang]['x-language-in-english']
-            dictpagename = "%sDict" % language
+            dictpagename = "%sDict" % language.replace(' ', '')
             dicts = request.dicts
             if dicts.has_dict(dictpagename):
                 userdict = dicts.dict(dictpagename)