def get_i18n(factory=I18n, key=_i18n_registry_key, request=None):
 request = (request or webapp2.get_request())
 i18n = request.registry.get(key)
 if (not i18n):
  i18n = request.registry[key] = factory(request)
 return i18n

def get_i18n ( factory = I18n , key = _i18n_registry_key , request = None ) : request = ( request or webapp2 . get_request ( ) ) i18n = request . registry . get ( key ) if ( not i18n ) : i18n = request . registry [ key ] = factory ( request ) return i18n
returns an instance of :class:i18n from the request registry .