Adds textdomain support to i18n extension

Adds a 'from' option to trans tag.