Adding a base template plugin translate class method.