Adds textdomain support to i18n extension

Adds a 'from' option to trans tag.
You should use the non-deprecated way like what was done above.