Adds textdomain support to i18n extension

Adds a 'from' option to trans tag.
Can you add some unit tests for this one. It cannot work as your method is named `trans`, not `gettext`. Or am I missing something here?