def interlink_removed_content(generator):
 current_lang = generator.settings['DEFAULT_LANG']
 for content in _GENERATOR_DB[generator]:
  url = _NATIVE_CONTENT_URL_DB[content.source_path]
  relpath = relpath_to_site(current_lang, content.lang)
  content.override_url = posixpath.join(relpath, url)

def interlink_removed_content ( generator ) : current_lang = generator . settings [ 'DEFAULT_LANG' ] for content in _GENERATOR_DB [ generator ] : url = _NATIVE_CONTENT_URL_DB [ content . source_path ] relpath = relpath_to_site ( current_lang , content . lang ) content . override_url = posixpath . join ( relpath , url )
for all contents removed from generation queue update interlinks link to the native location .