Skip to content

Commit be1006d

Browse files
authored
---
yaml --- r: 5539 b: refs/heads/master c: 2745831 h: refs/heads/master i: 5537: 9e7f83e 5535: f330cb2
1 parent d3d10a8 commit be1006d

17 files changed

Lines changed: 47 additions & 47 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 8b1009916cbd0c0c5e5c2de40d96d49e69e92457
2+
refs/heads/master: 2745831abf8323a296240aa9f2c57f92ee550357
33
refs/heads/travis: dae77e558b884bc1b165155482d76c8e40b0fca4
44
refs/heads/gh-pages: 049a9668af6afce3b5840dee8be005b0e6b43506
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This client supports the following Google Cloud Platform services at a [Beta](#v
1919
- [Google Cloud Datastore](#google-cloud-datastore-beta) (Beta)
2020
- [Google Cloud Storage](#google-cloud-storage-beta) (Beta)
2121
- [Cloud Spanner](#cloud-spanner-beta) (Beta)
22-
- [Google Cloud Translate](#google-translate-beta) (Beta)
22+
- [Google Cloud Translation](#google-translation-beta) (Beta)
2323
- Cloud Vision (Beta)
2424
- Cloud Natural Language (Beta)
2525

@@ -89,7 +89,7 @@ Example Applications
8989
- 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).
9090
- [`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.
9191
- 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
9393
- 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).
9494

9595
Specifying a Project ID
@@ -650,7 +650,7 @@ while (projectIterator.hasNext()) {
650650
}
651651
```
652652
653-
Google Translate (Beta)
653+
Google Translation (Beta)
654654
----------------
655655
656656
- [API Documentation][translate-api]

trunk/TESTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ Here is an example that clears the bucket created in Step 3 with a timeout of 5
233233
RemoteStorageHelper.forceDelete(storage, bucket, 5, TimeUnit.SECONDS);
234234
```
235235

236-
### Testing code that uses Translate
236+
### Testing code that uses Translation
237237

238238
`RemoteTranslateHelper` contains convenience methods to make is easier to run tests against the
239-
Google Translate service.
239+
Google Translation service.
240240

241241
1. Create a test Google Cloud project.
242242

trunk/google-cloud-examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ To run examples from your command line:
170170
171171
* Here's an example run of `TranslateExample`.
172172
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.
174174
```
175175
target/appassembler/bin/TranslateExample <apiKey> languages
176176
target/appassembler/bin/TranslateExample <apiKey> detect Hello,\ World!

trunk/google-cloud-examples/src/main/java/com/google/cloud/examples/translate/TranslateExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
import java.util.Map;
2929

3030
/**
31-
* An example of using Google Translate.
31+
* An example of using Google Translation.
3232
*
33-
* <p>This example demonstrates a simple/typical Translate usage.
33+
* <p>This example demonstrates a simple/typical Translation usage.
3434
*
3535
* <p>See the
3636
* <a href="https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/google-cloud-examples/README.md">

trunk/google-cloud-examples/src/main/java/com/google/cloud/examples/translate/snippets/DetectLanguageAndTranslate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import com.google.cloud.translate.Translation;
3030

3131
/**
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
3333
* some other text.
3434
*/
3535
public class DetectLanguageAndTranslate {

trunk/google-cloud-translate/README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Google Cloud Java Client for Translate
1+
Google Cloud Java Client for Translation
22
====================================
33

4-
Java idiomatic client for [Google Translate](https://cloud.google.com/translate/).
4+
Java idiomatic client for [Google Translation](https://cloud.google.com/translate/).
55

66
[![Build Status](https://travis-ci.org/GoogleCloudPlatform/google-cloud-java.svg?branch=master)](https://travis-ci.org/GoogleCloudPlatform/google-cloud-java)
77
[![Coverage Status](https://coveralls.io/repos/GoogleCloudPlatform/google-cloud-java/badge.svg?branch=master)](https://coveralls.io/r/GoogleCloudPlatform/google-cloud-java?branch=master)
@@ -37,48 +37,48 @@ libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "0.11.1-a
3737
Example Application
3838
-------------------
3939

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 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).
4141

4242
Authentication
4343
--------------
4444

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).
4747

48-
About Google Translate
48+
About Google Translation
4949
--------------------
5050

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
5454
source language to a target language (e.g., French to English). Language detection is also
5555
available In cases where the source language is unknown.
5656

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.
5959

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.
6262

6363
Getting Started
6464
---------------
6565
#### Prerequisites
6666
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
6868
billing via the [Google Developers Console](https://console.developers.google.com/).
6969

7070
Finally, you must set up the local development environment by
7171
[installing the Google Cloud SDK](https://cloud.google.com/sdk/) and running the following command
7272
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.
7575

7676
#### Installation and setup
7777
You'll need to obtain the `google-cloud-translate` library. See the [Quickstart](#quickstart)
7878
section to add `google-cloud-translate` as a dependency in your code.
7979

8080
#### 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
8282
credentials or with an API key. The simplest way to authenticate is to use
8383
[Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials).
8484
These credentials are automatically inferred from your environment, so you only need the following
@@ -93,15 +93,15 @@ Translate translate = TranslateOptions.getDefaultInstance().getService();
9393

9494
Notice that this code can be also used with an API key. By default, an API key is looked for in the
9595
`GOOGLE_API_KEY` environment variable. Once the API key is set, you can make API calls by invoking
96-
methods on the Translate service created via `TranslateOptions.getDefaultInstance().getService()`.
96+
methods on the Translation service created via `TranslateOptions.getDefaultInstance().getService()`.
9797

9898
You can also explicitly set the API key as follows:
9999
```java
100100
Translate translate = TranslateOptions.newBuilder().setApiKey("myKey").build().getService();
101101
```
102102

103103
#### Detecting language
104-
With Google Translate you can detect the language of some text. The service will provide you with
104+
With Google Translation you can detect the language of some text. The service will provide you with
105105
the code of the detected language and a level of confidence.
106106

107107
Add the following import at the top of your file:
@@ -117,7 +117,7 @@ String detectedLanguage = detection.getLanguage();
117117
```
118118
#### Translating text
119119

120-
Google translate allows you to translate some text. When translating one or more texts you can
120+
Google translation allows you to translate some text. When translating one or more texts you can
121121
either provide the source language or let the service detect it for you.
122122

123123
Add the following imports at the top of your file:
@@ -156,7 +156,7 @@ Java 7 or above is required for using this client.
156156
Testing
157157
-------
158158

159-
This library has tools to help make tests for code using Cloud Translate.
159+
This library has tools to help make tests for code using Cloud Translation.
160160

161161
See [TESTING] to read more about testing.
162162

trunk/google-cloud-translate/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<artifactId>google-cloud-translate</artifactId>
55
<version>${beta.version}</version>
66
<packaging>jar</packaging>
7-
<name>Google Cloud Translate</name>
7+
<name>Google Cloud Translation</name>
88
<url>https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-translate</url>
99
<description>
10-
Java idiomatic client for Google Translate.
10+
Java idiomatic client for Google Translation.
1111
</description>
1212
<parent>
1313
<groupId>com.google.cloud</groupId>

trunk/google-cloud-translate/src/main/java/com/google/cloud/translate/Language.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import java.util.Objects;
2525

2626
/**
27-
* Information about a language supported by Google Translate. Objects of this class contain
27+
* Information about a language supported by Google Translation. Objects of this class contain
2828
* language's code and the language name.
2929
*
3030
* @see <a href="https://cloud.google.com/translate/v2/discovering-supported-languages-with-rest">

trunk/google-cloud-translate/src/main/java/com/google/cloud/translate/Translate.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
import java.util.List;
2323

2424
/**
25-
* An interface for Google Translate.
25+
* An interface for Google Translation.
2626
*
27-
* @see <a href="https://cloud.google.com/translate/docs">Google Translate</a>
27+
* @see <a href="https://cloud.google.com/translate/docs">Google Translation</a>
2828
*/
2929
public interface Translate extends Service<TranslateOptions> {
3030

@@ -64,7 +64,7 @@ private TranslateOption(TranslateRpc.Option rpcOption, String value) {
6464
}
6565

6666
/**
67-
* Returns an option for setting the source language. If not provided, Google Translate will try
67+
* Returns an option for setting the source language. If not provided, Google Translation will try
6868
* to detect the language of the text to translate.
6969
*
7070
* @param sourceLanguage the source language code
@@ -85,7 +85,7 @@ public static TranslateOption targetLanguage(String targetLanguage) {
8585

8686
/**
8787
* Sets the language translation model. You can use this parameter to take advantage of Neural
88-
* Machine Translation. Possible values are {@code base} and {@code nmt}. Google Translate could
88+
* Machine Translation. Possible values are {@code base} and {@code nmt}. Google Translation could
8989
* use a different model to translate your text, use {@link Translation#getModel()} to know
9090
* which model was used for translation. Please notice that you must be whitelisted to use this
9191
* option, otherwise translation will fail.
@@ -98,7 +98,7 @@ public static TranslateOption model(String model) {
9898
}
9999

100100
/**
101-
* Returns the list of languages supported by Google Translate. If
101+
* Returns the list of languages supported by Google Translation. If
102102
* {@link LanguageListOption#targetLanguage(String)} is provided, {@link Language#getName()}
103103
* values are localized according to the provided target language. If no such option is passed,
104104
* {@link Language#getName()} values are localized according to

0 commit comments

Comments
 (0)