Update translating for #43 and add translation function in mail template engine (for translate vars). Remove dead code.