You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Read more about using this application on the [`StorageExample` docs page](https://googlecloudplatform.github.io/google-cloud-java/apidocs/?com/google/cloud/examples/storage/StorageExample.html).
90
90
-[`TaskList`](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/datastore/src/main/java/com/google/datastore/snippets/TaskList.java) - A command line application that uses Cloud Datastore to manage a to-do list.
91
91
- Read about how to run the application on its [README page](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/datastore).
92
-
-[`TranslateExample`](./google-cloud-examples/src/main/java/com/google/cloud/examples/translate/TranslateExample.java) - A simple command line interface providing some of Google Translate's functionality
92
+
-[`TranslateExample`](./google-cloud-examples/src/main/java/com/google/cloud/examples/translate/TranslateExample.java) - A simple command line interface providing some of Google Translation's functionality
93
93
- Read more about using this application on the [`TranslateExample` docs page](https://googlecloudplatform.github.io/google-cloud-java/apidocs/?com/google/cloud/examples/translate/TranslateExample.html).
94
94
95
95
Specifying a Project ID
@@ -650,7 +650,7 @@ while (projectIterator.hasNext()) {
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/google-cloud-examples/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,7 +170,7 @@ To run examples from your command line:
170
170
171
171
* Here's an example run of `TranslateExample`.
172
172
173
-
Before running the example, go to the [Google Developers Console][developers-console] to ensure that "Google Translate API" is enabled and that you have a valid API key.
173
+
Before running the example, go to the [Google Developers Console][developers-console] to ensure that "Google Translation API" is enabled and that you have a valid API key.
174
174
```
175
175
target/appassembler/bin/TranslateExample <apiKey> languages
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/google-cloud-examples/src/main/java/com/google/cloud/examples/translate/TranslateExample.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,9 +28,9 @@
28
28
importjava.util.Map;
29
29
30
30
/**
31
-
* An example of using Google Translate.
31
+
* An example of using Google Translation.
32
32
*
33
-
* <p>This example demonstrates a simple/typical Translate usage.
33
+
* <p>This example demonstrates a simple/typical Translation usage.
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/google-cloud-examples/src/main/java/com/google/cloud/examples/translate/snippets/DetectLanguageAndTranslate.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@
29
29
importcom.google.cloud.translate.Translation;
30
30
31
31
/**
32
-
* A snippet for Google Translate showing how to detect the language of some text and translate
32
+
* A snippet for Google Translation showing how to detect the language of some text and translate
[`TranslateExample`](../google-cloud-examples/src/main/java/com/google/cloud/examples/translate/TranslateExample.java) is a simple command line interface that provides some of Google Translate's functionality. Read more about using the application on the [`TranslateExample` docs page](https://googlecloudplatform.github.io/google-cloud-java/apidocs/?com/google/cloud/examples/translate/TranslateExample.html).
40
+
[`TranslateExample`](../google-cloud-examples/src/main/java/com/google/cloud/examples/translate/TranslateExample.java) is a simple command line interface that provides some of Google Translation's functionality. Read more about using the application on the [`TranslateExample` docs page](https://googlecloudplatform.github.io/google-cloud-java/apidocs/?com/google/cloud/examples/translate/TranslateExample.html).
41
41
42
42
Authentication
43
43
--------------
44
44
45
-
Google Translate requires an API key to be passed with every request. For instructions on how to
46
-
get an API key follow the [Translate quickstart](https://cloud.google.com/translate/v2/quickstart).
45
+
Google Translation requires an API key to be passed with every request. For instructions on how to
46
+
get an API key follow the [Translation quickstart](https://cloud.google.com/translate/v2/quickstart).
47
47
48
-
About Google Translate
48
+
About Google Translation
49
49
--------------------
50
50
51
-
[Google Translate][google-translate] provides a simple programmatic interface for translating an
52
-
arbitrary string into any supported language. Translate is highly responsive, so websites and
53
-
applications can integrate with Translate API for fast, dynamic translation of source text from the
51
+
[Google Translation][google-translate] provides a simple programmatic interface for translating an
52
+
arbitrary string into any supported language. Translation is highly responsive, so websites and
53
+
applications can integrate with Translation API for fast, dynamic translation of source text from the
54
54
source language to a target language (e.g., French to English). Language detection is also
55
55
available In cases where the source language is unknown.
56
56
57
-
See the [Translate quickstart](https://cloud.google.com/translate/v2/quickstart) for more details
58
-
on how to activate Google Translate for your project.
57
+
See the [Translation quickstart](https://cloud.google.com/translate/v2/quickstart) for more details
58
+
on how to activate Google Translation for your project.
59
59
60
-
See the ``google-cloud`` API [Translate documentation][translate-api] to learn how to interact with
61
-
the Google Translate using this Client Library.
60
+
See the ``google-cloud`` API [Translation documentation][translate-api] to learn how to interact with
61
+
the Google Translation using this Client Library.
62
62
63
63
Getting Started
64
64
---------------
65
65
#### Prerequisites
66
66
For this tutorial, you need a [Google Developers Console](https://console.developers.google.com/)
67
-
project with "Translate API" enabled via the console's API Manager. You also need to enable
67
+
project with "Translation API" enabled via the console's API Manager. You also need to enable
68
68
billing via the [Google Developers Console](https://console.developers.google.com/).
69
69
70
70
Finally, you must set up the local development environment by
71
71
[installing the Google Cloud SDK](https://cloud.google.com/sdk/) and running the following command
72
72
in command line: `gcloud auth application-default login`. Alternatively, you can authenticate
73
-
Translate requests using an API key. See
74
-
[Translate quickstart](https://cloud.google.com/translate/v2/quickstart) for more details.
73
+
Translation requests using an API key. See
74
+
[Translation quickstart](https://cloud.google.com/translate/v2/quickstart) for more details.
75
75
76
76
#### Installation and setup
77
77
You'll need to obtain the `google-cloud-translate` library. See the [Quickstart](#quickstart)
78
78
section to add `google-cloud-translate` as a dependency in your code.
79
79
80
80
#### Creating an authorized service object
81
-
To make authenticated requests to Google Translate, you must create a service object with
81
+
To make authenticated requests to Google Translation, you must create a service object with
82
82
credentials or with an API key. The simplest way to authenticate is to use
0 commit comments