From f8d31ef64e2416f44131b5d3cf7ef643d8c9f440 Mon Sep 17 00:00:00 2001 From: daspecster Date: Thu, 23 Mar 2017 16:15:31 -0400 Subject: [PATCH] Fix translate links. --- docs/translate-usage.rst | 10 +++++----- translate/google/cloud/translate/client.py | 7 +++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/translate-usage.rst b/docs/translate-usage.rst index 10456cbefcbe..91d0d4a8bfc1 100644 --- a/docs/translate-usage.rst +++ b/docs/translate-usage.rst @@ -112,8 +112,8 @@ or to use a non-default target language: }, ] -.. _Google Cloud Translation: https://cloud.google.com/translation -.. _Pricing: https://cloud.google.com/translation/pricing -.. _FAQ: https://cloud.google.com/translation/faq -.. _Identifying your application to Google: https://cloud.google.com/translation/docs/translating-text -.. _confidence: https://cloud.google.com/translation/docs/detecting-language +.. _Google Cloud Translation: https://cloud.google.com/translate/ +.. _Pricing: https://cloud.google.com/translate/pricing +.. _FAQ: https://cloud.google.com/translate/faq +.. _Identifying your application to Google: https://cloud.google.com/translate/docs/translating-text +.. _confidence: https://cloud.google.com/translate/docs/detecting-language diff --git a/translate/google/cloud/translate/client.py b/translate/google/cloud/translate/client.py index b1cdbcbfe859..7854ba7b5da8 100644 --- a/translate/google/cloud/translate/client.py +++ b/translate/google/cloud/translate/client.py @@ -69,8 +69,8 @@ def get_languages(self, target_language=None): Response - See: https://cloud.google.com/translate/v2/\ - discovering-supported-languages-with-rest + See: + https://cloud.google.com/translate/docs/discovering-supported-languages :type target_language: str :param target_language: (Optional) The language used to localize @@ -96,8 +96,7 @@ def get_languages(self, target_language=None): def detect_language(self, values): """Detect the language of a string or list of strings. - See: https://cloud.google.com/translate/v2/\ - detecting-language-with-rest + See: https://cloud.google.com/translate/docs/detecting-language :type values: str or list :param values: String or list of strings that will have