From 3c2ab239b9c0c18aebd6139037b11611fab530fc Mon Sep 17 00:00:00 2001 From: Taha Kotil <217662244+tahakotil@users.noreply.github.com> Date: Sun, 13 Sep 2026 18:01:53 +0300 Subject: [PATCH 1/2] Fix #4519: Update Google Translate link Replace the obsolete redirect with the official Cloud Translation language-support page. Keep the Django field state in sync with an AlterField migration. --- documentation/docs/admin/adding-new-locale.md | 2 +- ...0134_alter_locale_google_translate_code.py | 21 +++++++++++++++++++ pontoon/base/models/locale.py | 6 +++--- 3 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 pontoon/base/migrations/0134_alter_locale_google_translate_code.py diff --git a/documentation/docs/admin/adding-new-locale.md b/documentation/docs/admin/adding-new-locale.md index 3ccf324ae8..627f0ac7b7 100644 --- a/documentation/docs/admin/adding-new-locale.md +++ b/documentation/docs/admin/adding-new-locale.md @@ -16,7 +16,7 @@ It’s the locale code, in this case `am`. ### Google Translate code -Google Translate maintains a list of supported locales in its own format. Choose one that matches the locale from [a list of supported locales](https://translate.google.com/intl/en/about/languages/) or leave it blank to disable support for Google Translate for this locale. +Google Cloud Translation maintains a list of supported locales in its own format. Choose one that matches the locale from [the list of supported languages](https://cloud.google.com/translate/docs/languages) or leave it blank to disable support for Google Cloud Translation for this locale. ### Google AutoML model diff --git a/pontoon/base/migrations/0134_alter_locale_google_translate_code.py b/pontoon/base/migrations/0134_alter_locale_google_translate_code.py new file mode 100644 index 0000000000..540a68409d --- /dev/null +++ b/pontoon/base/migrations/0134_alter_locale_google_translate_code.py @@ -0,0 +1,21 @@ +# Generated by Django 5.2.15 on 2026-09-13 14:58 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("base", "0133_alter_locale_script"), + ] + + operations = [ + migrations.AlterField( + model_name="locale", + name="google_translate_code", + field=models.CharField( + blank=True, + help_text='\n Google Cloud Translation maintains its own list of\n \n supported languages. Choose a matching locale from the list or leave blank to disable\n support for Google Cloud Translation machine translation service.\n ', + max_length=20, + ), + ), + ] diff --git a/pontoon/base/models/locale.py b/pontoon/base/models/locale.py index 1b2b88acac..b5499e008c 100644 --- a/pontoon/base/models/locale.py +++ b/pontoon/base/models/locale.py @@ -142,9 +142,9 @@ def aggregated_stats_query(self): max_length=20, blank=True, help_text=""" - Google Translate maintains its own list of - - supported locales. Choose a matching locale from the list or leave blank to disable + Google Cloud Translation maintains its own list of + + supported languages. Choose a matching locale from the list or leave blank to disable support for Google Cloud Translation machine translation service. """, ) From efc62789481abc9a235ace0e7d2b12d33249eb69 Mon Sep 17 00:00:00 2001 From: Taha Kotil <217662244+tahakotil@users.noreply.github.com> Date: Thu, 17 Sep 2026 00:10:15 +0300 Subject: [PATCH 2/2] Point Google Translate languages link to its final URL (#4519) --- documentation/docs/admin/adding-new-locale.md | 2 +- .../base/migrations/0134_alter_locale_google_translate_code.py | 2 +- pontoon/base/models/locale.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/docs/admin/adding-new-locale.md b/documentation/docs/admin/adding-new-locale.md index 627f0ac7b7..076f8fa1ed 100644 --- a/documentation/docs/admin/adding-new-locale.md +++ b/documentation/docs/admin/adding-new-locale.md @@ -16,7 +16,7 @@ It’s the locale code, in this case `am`. ### Google Translate code -Google Cloud Translation maintains a list of supported locales in its own format. Choose one that matches the locale from [the list of supported languages](https://cloud.google.com/translate/docs/languages) or leave it blank to disable support for Google Cloud Translation for this locale. +Google Cloud Translation maintains a list of supported locales in its own format. Choose one that matches the locale from [the list of supported languages](https://docs.cloud.google.com/translate/docs/languages) or leave it blank to disable support for Google Cloud Translation for this locale. ### Google AutoML model diff --git a/pontoon/base/migrations/0134_alter_locale_google_translate_code.py b/pontoon/base/migrations/0134_alter_locale_google_translate_code.py index 540a68409d..5d8a850f3f 100644 --- a/pontoon/base/migrations/0134_alter_locale_google_translate_code.py +++ b/pontoon/base/migrations/0134_alter_locale_google_translate_code.py @@ -14,7 +14,7 @@ class Migration(migrations.Migration): name="google_translate_code", field=models.CharField( blank=True, - help_text='\n Google Cloud Translation maintains its own list of\n \n supported languages. Choose a matching locale from the list or leave blank to disable\n support for Google Cloud Translation machine translation service.\n ', + help_text='\n Google Cloud Translation maintains its own list of\n \n supported languages. Choose a matching locale from the list or leave blank to disable\n support for Google Cloud Translation machine translation service.\n ', max_length=20, ), ), diff --git a/pontoon/base/models/locale.py b/pontoon/base/models/locale.py index b5499e008c..fc0f23ee2b 100644 --- a/pontoon/base/models/locale.py +++ b/pontoon/base/models/locale.py @@ -143,7 +143,7 @@ def aggregated_stats_query(self): blank=True, help_text=""" Google Cloud Translation maintains its own list of - + supported languages. Choose a matching locale from the list or leave blank to disable support for Google Cloud Translation machine translation service. """,