#NEWLINE# def process_response( self , request , response ) : #NEWLINE# #INDENT# language_code = request . REQUEST . get ( 'language_code' ) #NEWLINE# if ( language_code and ( language_code in dict ( settings . LANGUAGES ) ) ) : #NEWLINE# #INDENT# response . set_cookie ( settings . LANGUAGE_COOKIE_NAME , language_code ) #NEWLINE# #UNINDENT# return super ( CookieLocaleMiddleware , self ) . process_response ( request , response )