Skip to content

Fix obsolete Google Translate locale link - #4523

Open
tahakotil wants to merge 1 commit into
mozilla:mainfrom
tahakotil:fix/google-translate-link-4519
Open

tahakotil wants to merge 1 commit into
mozilla:mainfrom
tahakotil:fix/google-translate-link-4519

Conversation

@tahakotil

Copy link
Copy Markdown
Contributor

Summary

  • replace the obsolete Google Translate locales link with the official Cloud Translation language-support page
  • update both Django admin help text and administrator documentation
  • add the matching Django field-state migration

Verification

  • confirmed the replacement is the current official Cloud Translation language-support page
  • ruff check pontoon/base/models/locale.py pontoon/base/migrations/0134_alter_locale_google_translate_code.py
  • parsed both changed Python files with ast.parse
  • git diff --check

AI assistance: Codex was used to implement and verify this change under @tahakotil's direction.

Fixes #4519

Replace the obsolete redirect with the official Cloud Translation language-support page. Keep the Django field state in sync with an AlterField migration.
@mathjazz
mathjazz requested a review from flodolo September 14, 2026 07:52
### 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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link redirects to https://docs.cloud.google.com/translate/docs/languages
We should point to the final URL and skip the redirect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Obsolete link for Google Translate supported locales

2 participants