added generator for trans.sh (re #295)