Add script to export files for translation

For #1936