def default_locale_negotiator(request):
 name = '_LOCALE_'
 locale_name = getattr(request, name, None)
 if (locale_name is None):
  locale_name = request.params.get(name)
  if (locale_name is None):
   locale_name = request.cookies.get(name)
 return locale_name

def default_locale_negotiator ( request ) : name = '_LOCALE_' locale_name = getattr ( request , name , None ) if ( locale_name is None ) : locale_name = request . params . get ( name ) if ( locale_name is None ) : locale_name = request . cookies . get ( name ) return locale_name
the default :term:locale negotiator .