diff --git a/warehouse/locale/messages.pot b/warehouse/locale/messages.pot index b747e5f52ecf..567b190f9bea 100644 --- a/warehouse/locale/messages.pot +++ b/warehouse/locale/messages.pot @@ -570,14 +570,14 @@ msgid "Invalid project name" msgstr "" #: warehouse/oidc/forms/_core.py:35 -msgid "This project name is already in use" +msgid "This project already exists, create an ordinary Trusted Publisher instead" msgstr "" -#: warehouse/oidc/forms/_core.py:44 +#: warehouse/oidc/forms/_core.py:47 msgid "Specify a publisher ID" msgstr "" -#: warehouse/oidc/forms/_core.py:45 +#: warehouse/oidc/forms/_core.py:48 msgid "Publisher must be specified by ID" msgstr "" diff --git a/warehouse/oidc/forms/_core.py b/warehouse/oidc/forms/_core.py index ce7659232122..e44ad59d4764 100644 --- a/warehouse/oidc/forms/_core.py +++ b/warehouse/oidc/forms/_core.py @@ -32,7 +32,10 @@ def validate_project_name(self, field): if project_name in self._project_factory: raise wtforms.validators.ValidationError( - _("This project name is already in use") + _( + "This project already exists, create an ordinary Trusted " + "Publisher instead" + ) )