Adds textdomain support to i18n extension

Adds a 'from' option to trans tag.
Why should you not provide translation in a test? Here, we are testing our implementation, not gettext implementation.