Adds textdomain support to i18n extension

Adds a 'from' option to trans tag.
Right, it was a mistake caused by reversion to non-deprecated filter.

I am not sure how this could be well-tested, since `gettext` needs some translation files which should not be provided in a test. This means that the functionality itself cannot be tested (IMO). Any ideas?