Skip to content

Commit 363f30b

Browse files
authored
Merge pull request #2865 from daspecster/update-translate-branding
Update Translation API branding.
2 parents aea151b + 2f75184 commit 363f30b

File tree

8 files changed

+32
-33
lines changed

8 files changed

+32
-33
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Cloud Platform services:
3737
- `Google Cloud DNS`_ (`DNS README`_)
3838
- `Stackdriver Error Reporting`_ (`Error Reporting README`_)
3939
- `Google Cloud Natural Language`_ (`Natural Language README`_)
40-
- `Google Translate`_ (`Translate README`_)
40+
- `Google Cloud Translation`_ (`Translation README`_)
4141
- `Google Cloud Vision`_ (`Vision README`_)
4242
- `Google Cloud Bigtable - HappyBase`_ (`HappyBase README`_)
4343
- `Google Cloud Runtime Configuration`_ (`Runtime Config README`_)
@@ -68,8 +68,8 @@ updates. See `versioning`_ for more details.
6868
.. _Error Reporting README: https://github.com/GoogleCloudPlatform/google-cloud-python/tree/master/error_reporting
6969
.. _Google Cloud Natural Language: https://pypi.python.org/pypi/google-cloud-language
7070
.. _Natural Language README: https://github.com/GoogleCloudPlatform/google-cloud-python/tree/master/language
71-
.. _Google Translate: https://pypi.python.org/pypi/google-cloud-translate
72-
.. _Translate README: https://github.com/GoogleCloudPlatform/google-cloud-python/tree/master/translate
71+
.. _Google Cloud Translation: https://pypi.python.org/pypi/google-cloud-translate
72+
.. _Translation README: https://github.com/GoogleCloudPlatform/google-cloud-python/tree/master/translate
7373
.. _Google Cloud Vision: https://pypi.python.org/pypi/google-cloud-vision
7474
.. _Vision README: https://github.com/GoogleCloudPlatform/google-cloud-python/tree/master/vision
7575
.. _Google Cloud Bigtable - HappyBase: https://pypi.python.org/pypi/google-cloud-happybase/

docs/translate-client.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Translate Client
2-
================
1+
Translation Client
2+
==================
33

44
.. automodule:: google.cloud.translate.client
55
:members:

docs/translate-usage.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Using the API
22
=============
33

4-
With `Google Translate`_, you can dynamically translate text
5-
between thousands of language pairs. The Google Translate API
6-
lets websites and programs integrate with Google Translate
7-
programmatically. Google Translate API is available as a
4+
With `Google Cloud Translation`_, you can dynamically translate text
5+
between thousands of language pairs. The Google Cloud Translation API
6+
lets websites and programs integrate with Google Cloud Translation
7+
programmatically. Google Cloud Translation is available as a
88
paid service. See the `Pricing`_ and `FAQ`_ pages for details.
99

1010
Authentication / Configuration
@@ -14,9 +14,9 @@ Authentication / Configuration
1414
your applications.
1515

1616
- :class:`~google.cloud.translate.client.Client` objects hold both a ``key``
17-
and a connection to the Translate service.
17+
and a connection to the Cloud Translation service.
1818

19-
- **An API key is required for Translate.** See
19+
- **An API key is required for Google Cloud Translation.** See
2020
`Identifying your application to Google`_ for details. This is
2121
significantly different than the other clients in ``google-cloud-python``.
2222

@@ -39,13 +39,13 @@ well:
3939
>>> from google.cloud import translate
4040
>>> client = translate.Client('my-api-key', target_language='es')
4141
42-
The Google Translate API has three supported methods, and they
42+
The Google Cloud Translation API has three supported methods, and they
4343
map to three methods on a client:
4444
:meth:`~google.cloud.translate.client.Client.get_languages`,
4545
:meth:`~google.cloud.translate.client.Client.detect_language` and
4646
:meth:`~google.cloud.translate.client.Client.translate`.
4747

48-
To get a list of languages supported by Google Translate
48+
To get a list of languages supported by the Google Cloud Translation API
4949

5050
.. code::
5151
@@ -116,8 +116,8 @@ or to use a non-default target language:
116116
},
117117
]
118118
119-
.. _Google Translate: https://cloud.google.com/translate
120-
.. _Pricing: https://cloud.google.com/translate/v2/pricing.html
121-
.. _FAQ: https://cloud.google.com/translate/v2/faq.html
122-
.. _Identifying your application to Google: https://cloud.google.com/translate/v2/using_rest#auth
123-
.. _confidence: https://cloud.google.com/translate/v2/detecting-language-with-rest
119+
.. _Google Cloud Translation: https://cloud.google.com/translation
120+
.. _Pricing: https://cloud.google.com/translation/pricing
121+
.. _FAQ: https://cloud.google.com/translation/faq
122+
.. _Identifying your application to Google: https://cloud.google.com/translation/docs/translating-text
123+
.. _confidence: https://cloud.google.com/translation/docs/detecting-language

translate/README.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Python Client for Google Translate
2-
==================================
1+
Python Client for Google Cloud Translation
2+
==========================================
33

4-
Python idiomatic client for `Google Translate`_
4+
Python idiomatic client for `Google Cloud Translation`_
55

6-
.. _Google Translate: https://cloud.google.com/translate/
6+
.. _Google Cloud Translation: https://cloud.google.com/translate/
77

88
|pypi| |versions|
99

@@ -32,13 +32,13 @@ the ``google-cloud-*`` libraries to be helpful.
3232
Using the API
3333
-------------
3434

35-
With the Google `Translate`_ API (`Translate API docs`_), you can
35+
With the Google Cloud `Translation`_ API (`Translation API docs`_), you can
3636
dynamically translate text between thousands of language pairs.
3737

38-
.. _Translate: https://cloud.google.com/translate/
39-
.. _Translate API docs: https://cloud.google.com/translate/docs/apis
38+
.. _Translation: https://cloud.google.com/translate/
39+
.. _Translation API docs: https://cloud.google.com/translate/docs/apis
4040

41-
See the ``google-cloud-python`` API Translate `Documentation`_ to learn
41+
See the ``google-cloud-python`` API Translation `Documentation`_ to learn
4242
how to translate text using this library.
4343

4444
.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-translate.svg

translate/google/cloud/translate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
"""Google Cloud Translate API wrapper."""
15+
"""Google Cloud Translation API wrapper."""
1616

1717
from google.cloud.translate.client import BASE
1818
from google.cloud.translate.client import Client

translate/google/cloud/translate/client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
"""Client for interacting with the Google Cloud Translate API."""
15+
"""Client for interacting with the Google Cloud Translation API."""
1616

1717

1818
import six
@@ -158,8 +158,7 @@ def translate(self, values, target_language=None, format_=None,
158158
model=None):
159159
"""Translate a string or list of strings.
160160
161-
See: https://cloud.google.com/translate/v2/\
162-
translating-text-with-rest
161+
See: https://cloud.google.com/translate/docs/translating-text
163162
164163
:type values: str or list
165164
:param values: String or list of strings to translate.

translate/google/cloud/translate/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
"""Create / interact with Google Cloud Translate connections."""
15+
"""Create / interact with Google Cloud Translation connections."""
1616

1717
from google.cloud import _http
1818

1919

2020
class Connection(_http.JSONConnection):
21-
"""A connection to Google Cloud Translate via the JSON REST API."""
21+
"""A connection to Google Cloud Translation API via the JSON REST API."""
2222

2323
API_BASE_URL = 'https://translation.googleapis.com'
2424
"""The base of the API call URL."""

translate/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
setup(
5757
name='google-cloud-translate',
5858
version='0.22.0',
59-
description='Python Client for Google Translate',
59+
description='Python Client for Google Cloud Translation API',
6060
long_description=README,
6161
namespace_packages=[
6262
'google',

0 commit comments

Comments
 (0)