def set_i18n(i18n, key=_i18n_registry_key, request=None):
 request = (request or webapp2.get_request())
 request.registry[key] = i18n

def set_i18n ( i18n , key = _i18n_registry_key , request = None ) : request = ( request or webapp2 . get_request ( ) ) request . registry [ key ] = i18n
sets an instance of :class:i18n in the request registry .