Added translate function into printed content in template files