diff --git a/packages/google-cloud-translate/README.rst b/packages/google-cloud-translate/README.rst index 9a5c0f16e0fd..a85374ff5298 100644 --- a/packages/google-cloud-translate/README.rst +++ b/packages/google-cloud-translate/README.rst @@ -1,9 +1,9 @@ -Python Client for Google Translate -================================== +Python Client for Google Cloud Translation +========================================== - Python idiomatic client for `Google Translate`_ + Python idiomatic client for `Google Cloud Translation`_ -.. _Google Translate: https://cloud.google.com/translate/ +.. _Google Cloud Translation: https://cloud.google.com/translate/ |pypi| |versions| @@ -32,13 +32,13 @@ the ``google-cloud-*`` libraries to be helpful. Using the API ------------- -With the Google `Translate`_ API (`Translate API docs`_), you can +With the Google Cloud `Translation`_ API (`Translation API docs`_), you can dynamically translate text between thousands of language pairs. -.. _Translate: https://cloud.google.com/translate/ -.. _Translate API docs: https://cloud.google.com/translate/docs/apis +.. _Translation: https://cloud.google.com/translate/ +.. _Translation API docs: https://cloud.google.com/translate/docs/apis -See the ``google-cloud-python`` API Translate `Documentation`_ to learn +See the ``google-cloud-python`` API Translation `Documentation`_ to learn how to translate text using this library. .. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-translate.svg diff --git a/packages/google-cloud-translate/google/cloud/translate/__init__.py b/packages/google-cloud-translate/google/cloud/translate/__init__.py index 83ff5f114435..006ac866ab8d 100644 --- a/packages/google-cloud-translate/google/cloud/translate/__init__.py +++ b/packages/google-cloud-translate/google/cloud/translate/__init__.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""Google Cloud Translate API wrapper.""" +"""Google Cloud Translation API wrapper.""" from google.cloud.translate.client import BASE from google.cloud.translate.client import Client diff --git a/packages/google-cloud-translate/google/cloud/translate/client.py b/packages/google-cloud-translate/google/cloud/translate/client.py index ea5359007bb6..b105575944a3 100644 --- a/packages/google-cloud-translate/google/cloud/translate/client.py +++ b/packages/google-cloud-translate/google/cloud/translate/client.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""Client for interacting with the Google Cloud Translate API.""" +"""Client for interacting with the Google Cloud Translation API.""" import six @@ -158,8 +158,7 @@ def translate(self, values, target_language=None, format_=None, model=None): """Translate a string or list of strings. - See: https://cloud.google.com/translate/v2/\ - translating-text-with-rest + See: https://cloud.google.com/translate/docs/translating-text :type values: str or list :param values: String or list of strings to translate. diff --git a/packages/google-cloud-translate/google/cloud/translate/connection.py b/packages/google-cloud-translate/google/cloud/translate/connection.py index 0582bcd22a3f..518e7e424a93 100644 --- a/packages/google-cloud-translate/google/cloud/translate/connection.py +++ b/packages/google-cloud-translate/google/cloud/translate/connection.py @@ -12,13 +12,13 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""Create / interact with Google Cloud Translate connections.""" +"""Create / interact with Google Cloud Translation connections.""" from google.cloud import _http class Connection(_http.JSONConnection): - """A connection to Google Cloud Translate via the JSON REST API.""" + """A connection to Google Cloud Translation API via the JSON REST API.""" API_BASE_URL = 'https://translation.googleapis.com' """The base of the API call URL.""" diff --git a/packages/google-cloud-translate/setup.py b/packages/google-cloud-translate/setup.py index 68351f553edb..d57f326631c3 100644 --- a/packages/google-cloud-translate/setup.py +++ b/packages/google-cloud-translate/setup.py @@ -56,7 +56,7 @@ setup( name='google-cloud-translate', version='0.22.0', - description='Python Client for Google Translate', + description='Python Client for Google Cloud Translation API', long_description=README, namespace_packages=[ 'google',