def download_dictionary_ttkit(export_format, prj, lang, words):
 exporter = get_exporter(export_format)(prj, lang, get_site_url(reverse('show_dictionary', kwargs={'project': prj.slug, 'lang': lang.code})))
 for word in words.iterator():
  exporter.add_dictionary(word)
 return exporter.get_response('glossary-{project}-{language}.{extension}')

def download_dictionary_ttkit ( export_format , prj , lang , words ) : exporter = get_exporter ( export_format ) ( prj , lang , get_site_url ( reverse ( 'show_dictionary' , kwargs = { 'project' : prj . slug , 'lang' : lang . code } ) ) ) for word in words . iterator ( ) : exporter . add_dictionary ( word ) return exporter . get_response ( 'glossary-{project}-{language}.{extension}' )
translate-toolkit builder for dictionary downloads .