diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-03-13 17:24:34 +0100 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2024-03-20 08:46:29 +0100 |
commit | 071d871dcf8dd8097dc0af6d4baf304a2fbbe4e2 (patch) | |
tree | dcd454347762dddcfd3d834821ef4c42b8c0a815 /templates | |
parent | Improve QueryEscape helper function (#29768) (diff) | |
download | forgejo-071d871dcf8dd8097dc0af6d4baf304a2fbbe4e2.tar.xz forgejo-071d871dcf8dd8097dc0af6d4baf304a2fbbe4e2.zip |
Fix incorrect locale Tr for gpg command (#29754)
(cherry picked from commit df60dbfb9918081962614d063485337fb42e0ee7)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/user/settings/keys_gpg.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/user/settings/keys_gpg.tmpl b/templates/user/settings/keys_gpg.tmpl index 293686ca96..2e26d69561 100644 --- a/templates/user/settings/keys_gpg.tmpl +++ b/templates/user/settings/keys_gpg.tmpl @@ -22,7 +22,7 @@ <input readonly="" value="{{.TokenToSign}}"> <div class="help"> <p>{{ctx.Locale.Tr "settings.gpg_token_help"}}</p> - <p><code>{{ctx.Locale.Tr "settings.gpg_token_code" .TokenToSign .PaddedKeyID}}</code></p> + <p><code>{{printf `echo "%s" | gpg -a --default-key %s --detach-sig` .TokenToSign .PaddedKeyID}}</code></p> </div> </div> <div class="field"> @@ -90,7 +90,7 @@ <input readonly="" value="{{$.TokenToSign}}"> <div class="help"> <p>{{ctx.Locale.Tr "settings.gpg_token_help"}}</p> - <p><code>{{ctx.Locale.Tr "settings.gpg_token_code" $.TokenToSign .PaddedKeyID}}</code></p> + <p><code>{{printf `echo "%s" | gpg -a --default-key %s --detach-sig` $.TokenToSign .PaddedKeyID}}</code></p> </div> <br> </div> |