Implemented translator domain macro for easier writing of templates