Repository navigation
Fix obsolete Google Translate locale link - #4523
Conversation
Replace the obsolete redirect with the official Cloud Translation language-support page. Keep the Django field state in sync with an AlterField migration.
| ### 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. |
There was a problem hiding this comment.
This link redirects to https://docs.cloud.google.com/translate/docs/languages
We should point to the final URL and skip the redirect
There was a problem hiding this comment.
Done in efc6278 — both links (docs + admin help text) now point to https://docs.cloud.google.com/translate/docs/languages, with the field-state migration updated to match.
|
@tahakotil |
|
@flodolo apologies for the delay — updated in efc6278. The link now points directly to the final URL ( Ready for another look. |
| ### 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://docs.cloud.google.com/translate/docs/languages) or leave it blank to disable support for Google Cloud Translation for this locale. |
There was a problem hiding this comment.
I was tempted to restore locales here, but the page use languages, so let's keep that.
Summary
Verification
ruff check pontoon/base/models/locale.py pontoon/base/migrations/0134_alter_locale_google_translate_code.pyast.parsegit diff --checkAI assistance: Codex was used to implement and verify this change under @tahakotil's direction.
Fixes #4519