Ignore:
Timestamp:
10 Mar 2012, 09:45:25 (13 years ago)
Author:
Henrik Bettermann
Message:

In some cases we do no longer need to know the fallback language (= portal language) because the fallback language is already set in the cookie when accessing Kofa for the first time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/browser.py

    r7819 r7833  
    261261        switched = [] # for log file
    262262        switched_translated = [] # for flash message
    263         portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    264         preferred_language = self.request.cookies.get(
    265             'kofa.language', portal_language)
     263        # Here we know that the cookie has been set
     264        preferred_language = self.request.cookies.get('kofa.language')
    266265        for bed_id in child_id:
    267266            message = self.context[bed_id].switchReservation()
Note: See TracChangeset for help on using the changeset viewer.