diff options
author | André Jaenisch <Ryuno-Ki@users.noreply.github.com> | 2022-06-08 02:28:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-07 20:28:10 -0400 |
commit | c1c07e533c9ca3be13b4af057b6b989402c12f6e (patch) | |
tree | 822dfddab8bd9fb0a937e5d2ba10c83bb7326e35 | |
parent | d78ea362d449f73f6d3aaa212e60499dc26a067c (diff) | |
download | gitea-c1c07e533c9ca3be13b4af057b6b989402c12f6e.tar.gz gitea-c1c07e533c9ca3be13b4af057b6b989402c12f6e.zip |
Improve wording on delete access token modal (#19909)
This PR highlights the nature of the destructive action.
It also rewords the action buttons to remove ambiguity.
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
-rw-r--r-- | options/locale/locale_en-US.ini | 4 | ||||
-rw-r--r-- | templates/user/settings/applications.tmpl | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 2c2e85ca2e..1cf35741ba 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -717,7 +717,9 @@ generate_token_success = Your new token has been generated. Copy it now as it wi generate_token_name_duplicate = <strong>%s</strong> has been used as an application name already. Please use a new one. delete_token = Delete access_token_deletion = Delete Access Token -access_token_deletion_desc = Deleting a token will revoke access to your account for applications using it. Continue? +access_token_deletion_cancel_action = Cancel +access_token_deletion_confirm_action = Delete +access_token_deletion_desc = Deleting a token will revoke access to your account for applications using it. This cannot be undone. Continue? delete_token_success = The token has been deleted. Applications using it no longer have access to your account. manage_oauth2_applications = Manage OAuth2 Applications diff --git a/templates/user/settings/applications.tmpl b/templates/user/settings/applications.tmpl index 6386eb3391..e3a9a251f3 100644 --- a/templates/user/settings/applications.tmpl +++ b/templates/user/settings/applications.tmpl @@ -71,11 +71,11 @@ <div class="actions"> <div class="ui cancel button"> <i class="remove icon"></i> - {{.i18n.Tr "modal.no"}} + {{.i18n.Tr "settings.access_token_deletion_cancel_action"}} </div> <div class="ui red basic inverted ok button"> <i class="checkmark icon"></i> - {{.i18n.Tr "modal.yes"}} + {{.i18n.Tr "settings.access_token_deletion_confirm_action"}} </div> </div> </div> |