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/applicants/browser.py

    r7819 r7833  
    232232    @property
    233233    def introduction(self):
    234         portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    235         lang = self.request.cookies.get('kofa.language', portal_language)
     234        # Here we know that the cookie has been set
     235        lang = self.request.cookies.get('kofa.language')
    236236        html = self.context.description_dict.get(lang,'')
    237237        if html =='':
     238            portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    238239            html = self.context.description_dict.get(portal_language,'')
    239240        if html =='':
Note: See TracChangeset for help on using the changeset viewer.