More fixes from ttkit

https://github.com/translate/translate/pull/46