fixed typo
refactored translate generation, closes #13