Ignore:
Timestamp:
13 Nov 2014, 14:40:27 (10 years ago)
Author:
Henrik Bettermann
Message:

Change of name.

Location:
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/language.py

    r7832 r11949  
    2323from zope.session.interfaces import ISession
    2424from zope.i18n.interfaces import IUserPreferredLanguages
    25 from waeup.kofa.configuration import ConfigurationContainer
    26 from waeup.kofa.interfaces import IKofaUtils
     25from waeup.ikoba.configuration import ConfigurationContainer
     26from waeup.ikoba.interfaces import IIkobaUtils
    2727
    28 class KofaLanguage(grokcore.component.Adapter):
     28class IkobaLanguage(grokcore.component.Adapter):
    2929    """Set preferred languages"""
    3030    grokcore.component.context(IBrowserRequest)
     
    3636
    3737        # Extract the preferred language from a cookie:
    38         lang = request.cookies.get('kofa.language', None)
     38        lang = request.cookies.get('ikoba.language', None)
    3939        if lang is None:
    40             lang = getUtility(IKofaUtils).PORTAL_LANGUAGE
    41             request.response.setCookie('kofa.language', lang, path='/')
     40            lang = getUtility(IIkobaUtils).PORTAL_LANGUAGE
     41            request.response.setCookie('ikoba.language', lang, path='/')
    4242
    4343        # According to IUserPreferredLanguages, we must return a list.
Note: See TracChangeset for help on using the changeset viewer.