Support for text domain.

fixes #4