Attachment 'ignore-browser-lang.patch'

Download

   1 * looking for arch@arch.thinkmo.de--2003-archives/moin--main--1.3--patch-562 to compare with
   2 * comparing to arch@arch.thinkmo.de--2003-archives/moin--main--1.3--patch-562
   3 M  MoinMoin/i18n/__init__.py
   4 
   5 * modified files
   6 
   7 --- orig/MoinMoin/i18n/__init__.py
   8 +++ mod/MoinMoin/i18n/__init__.py
   9 @@ -202,9 +202,13 @@
  10      # Or try to return one of the user browser accepted languages, if it
  11      # is available on this wiki...
  12      available = wikiLanguages()
  13 -    for lang in browserLanguages(request):
  14 -        if available.has_key(lang):
  15 -            return lang
  16 +
  17 +    # Ignore the browser language, preferable for local wikis which want
  18 +    # to serve content in only one langauge.
  19 +    if 0:
  20 +        for lang in browserLanguages(request):
  21 +            if available.has_key(lang):
  22 +                return lang
  23      
  24      # Or return the wiki default language...
  25      if available.has_key(request.cfg.default_lang):

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2005-01-21 15:22:43, 0.9 KB) [[attachment:ignore-browser-lang.patch]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.