Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion documentation/docs/admin/adding-new-locale.md
Original file line number Diff line number Diff line change
Expand Up @@ -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://docs.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.

I was tempted to restore locales here, but the page use languages, so let's keep that.


### Google AutoML model

Expand Down
21 changes: 21 additions & 0 deletions pontoon/base/migrations/0134_alter_locale_google_translate_code.py
Original file line number Diff line number Diff line change
@@ -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 <a href="https://docs.cloud.google.com/translate/docs/languages">\n supported languages</a>. 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,
),
),
]
6 changes: 3 additions & 3 deletions pontoon/base/models/locale.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ def aggregated_stats_query(self):
max_length=20,
blank=True,
help_text="""
Google Translate maintains its own list of
<a href="https://translate.google.com/intl/en/about/languages/">
supported locales</a>. Choose a matching locale from the list or leave blank to disable
Google Cloud Translation maintains its own list of
<a href="https://docs.cloud.google.com/translate/docs/languages">
supported languages</a>. Choose a matching locale from the list or leave blank to disable
support for Google Cloud Translation machine translation service.
""",
)
Expand Down