Bug: getHref2IndexHtml and http_accept_language

"Thimo Kraemer" <[email protected]>
Newsgroups gmane.comp.cms.zms.devel
Organization joonis new media
Message-ID <op.ubeam8wzzfgzcn@localhost>
Hello,

I don't know if it has been fixed already in current versions of ZMS. But  
at least in version 2.9.4 the HTTP_ACCEPT_LANGUAGE request-parameter is  
not handled correctly within the following functions:

File zmsobject.py
def getHref2SitemapHtml
def getHref2PrintHtml
def getHref2IndexHtml

Each existing line:
  if not REQUEST.has_key('lang'):  
REQUEST.set('lang',self.getPrimaryLanguage())

should be changed to:
  if not REQUEST.has_key('lang'):  
REQUEST.set('lang',self.getLanguage(REQUEST))


-- 
Best regards
Thimo Kraemer


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/zms-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/zms-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.