rewrite form_translate in sh

so much easier to reason with!
Merge pull request #8 from dimagi/sh

rewrite form_translate in sh