diff --git a/translation/samples/snippets/README.rst b/translation/samples/snippets/README.rst index 60018b25d7bf..4935e3c8b067 100644 --- a/translation/samples/snippets/README.rst +++ b/translation/samples/snippets/README.rst @@ -31,10 +31,16 @@ credentials for applications. Install Dependencies ++++++++++++++++++++ +#. Clone python-docs-samples and change directory to the sample directory you want to use. + + .. code-block:: bash + + $ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git + #. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions. - .. _Python Development Environment Setup Guide: - https://cloud.google.com/python/setup + .. _Python Development Environment Setup Guide: + https://cloud.google.com/python/setup #. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+. @@ -103,9 +109,8 @@ To run this sample: list-languages-with-target Lists all available languages and localizes them to the target language. Target must be an ISO 639-1 - language code. See - https://g.co/cloud/translate/v2/translate- - reference#supported_languages + language code. See https://g.co/cloud/translate/v2 + /translate-reference#supported_languages translate-text Translates text into the target language. Target must be an ISO 639-1 language code. See https://g.co/cloud/translate/v2/translate-