From e959ed9c4b94b713c0eacc72db2b9315fe7a7bde Mon Sep 17 00:00:00 2001 From: wim glenn Date: Tue, 31 Oct 2023 22:46:25 -0500 Subject: [PATCH] More helpful example text for twine upload command (#14836) * More helpful example text for twine upload command * Update translations --------- Co-authored-by: Dustin Ingram --- warehouse/locale/messages.pot | 4 ++-- warehouse/templates/manage/account/token.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/warehouse/locale/messages.pot b/warehouse/locale/messages.pot index 6b9d141015d5..9f011337d638 100644 --- a/warehouse/locale/messages.pot +++ b/warehouse/locale/messages.pot @@ -4578,8 +4578,8 @@ msgstr "" #: warehouse/templates/manage/account/token.html:113 #, python-format msgid "" -"You can then use %(command)s to switch to the correct token " -"when uploading to PyPI." +"You can then use %(command)s to use the correct token when " +"uploading to PyPI." msgstr "" #: warehouse/templates/manage/account/token.html:119 diff --git a/warehouse/templates/manage/account/token.html b/warehouse/templates/manage/account/token.html index 257bc44f6038..e86fc0428079 100644 --- a/warehouse/templates/manage/account/token.html +++ b/warehouse/templates/manage/account/token.html @@ -110,8 +110,8 @@

{% trans %}Using this token{% endtrans %}

username = __token__ password = # {% trans %}a project token{% endtrans %}

- {% trans command='twine --repository PROJECT_NAME' %} - You can then use {{ command }} to switch to the correct token when uploading to PyPI. + {% trans command='twine upload --repository PROJECT_NAME' %} + You can then use {{ command }} to use the correct token when uploading to PyPI. {% endtrans %}

{% endif %}