Changeset e918b52 in osmose-frontend


Ignore:
Timestamp:
Jan 21, 2013 8:10:57 PM (7 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
893ad40
Parents:
28a008c
git-author:
Jocelyn Jaubert <jocelyn.jaubert@…> (11/12/2012 21:28:39)
git-committer:
Jocelyn Jaubert <jocelyn.jaubert@…> (21/01/2013 20:10:57)
Message:

Fix bottle_gettext for the case Accept-Language doesn't contain any known language

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bottle_gettext.py

    r95a622e re918b52  
    3838            lang = [x for x in lang if x in self.allowed_languages] 
    3939 
    40         if lang[0]: 
     40        if len(lang) > 0 and lang[0]: 
    4141            lang.append(self.allowed_languages[0]) 
    4242            res = [] 
Note: See TracChangeset for help on using the changeset viewer.