DOC: Cleanup translate docstring

It now follows the NumPy docstring guidelines.