def pootle_context(request):
 return {'settings': {'POOTLE_CUSTOM_LOGO': getattr(settings, 'POOTLE_CUSTOM_LOGO', ''), 'POOTLE_TITLE': settings.POOTLE_TITLE, 'POOTLE_INSTANCE_ID': settings.POOTLE_INSTANCE_ID, 'POOTLE_CONTACT_ENABLED': (settings.POOTLE_CONTACT_ENABLED and settings.POOTLE_CONTACT_EMAIL), 'POOTLE_MARKUP_FILTER': get_markup_filter_name(), 'POOTLE_SIGNUP_ENABLED': settings.POOTLE_SIGNUP_ENABLED, 'SCRIPT_NAME': settings.SCRIPT_NAME, 'POOTLE_CACHE_TIMEOUT': settings.POOTLE_CACHE_TIMEOUT, 'DEBUG': settings.DEBUG}, 'custom': settings.POOTLE_CUSTOM_TEMPLATE_CONTEXT, 'ALL_LANGUAGES': Language.live.cached_dict(translation.get_language(), request.user.is_superuser), 'ALL_PROJECTS': Project.objects.cached_dict(request.user), 'SOCIAL_AUTH_PROVIDERS': _get_social_auth_providers(request), 'display_agreement': _agreement_context(request)}

def pootle_context ( request ) : return { 'settings' : { 'POOTLE_CUSTOM_LOGO' : getattr ( settings , 'POOTLE_CUSTOM_LOGO' , '' ) , 'POOTLE_TITLE' : settings . POOTLE_TITLE , 'POOTLE_INSTANCE_ID' : settings . POOTLE_INSTANCE_ID , 'POOTLE_CONTACT_ENABLED' : ( settings . POOTLE_CONTACT_ENABLED and settings . POOTLE_CONTACT_EMAIL ) , 'POOTLE_MARKUP_FILTER' : get_markup_filter_name ( ) , 'POOTLE_SIGNUP_ENABLED' : settings . POOTLE_SIGNUP_ENABLED , 'SCRIPT_NAME' : settings . SCRIPT_NAME , 'POOTLE_CACHE_TIMEOUT' : settings . POOTLE_CACHE_TIMEOUT , 'DEBUG' : settings . DEBUG } , 'custom' : settings . POOTLE_CUSTOM_TEMPLATE_CONTEXT , 'ALL_LANGUAGES' : Language . live . cached_dict ( translation . get_language ( ) , request . user . is_superuser ) , 'ALL_PROJECTS' : Project . objects . cached_dict ( request . user ) , 'SOCIAL_AUTH_PROVIDERS' : _get_social_auth_providers ( request ) , 'display_agreement' : _agreement_context ( request ) }
exposes settings to templates .