Partial fix for bug #68

Some other code was already pushed from PR 22: https://github.com/translate/translate/pull/22