summaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorYarden Shoham <git@yardenshoham.com>2023-05-06 15:37:02 +0300
committerGitHub <noreply@github.com>2023-05-06 12:37:02 +0000
commit95e2e3aa30d777a8298319885bb885befa870396 (patch)
treec1fcb171562a8f35537863ed73c1a521aeea92f4 /templates/user
parentef92459e183f3f3437d4e458dc75a350e4f34871 (diff)
downloadgitea-95e2e3aa30d777a8298319885bb885befa870396.tar.gz
gitea-95e2e3aa30d777a8298319885bb885befa870396.zip
Change `valid_until` translation to `valid_until_date` and include placeholder for the date (#24563)
- Similar to #24550 - Similar to #24562 The correct thing to do is to translate the entire phrase into a single string. The previous translation assumed all languages have a space between the "valid until" and the date (and that "valid until" comes before the date). Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/settings/keys_gpg.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/settings/keys_gpg.tmpl b/templates/user/settings/keys_gpg.tmpl
index b15fb56861..e57714c8a2 100644
--- a/templates/user/settings/keys_gpg.tmpl
+++ b/templates/user/settings/keys_gpg.tmpl
@@ -70,7 +70,7 @@
<div class="activity meta">
<i>{{$.locale.Tr "settings.add_on"}} <span>{{DateTime "short" .AddedUnix}}</span></i>
-
- <i>{{if not .ExpiredUnix.IsZero}}{{$.locale.Tr "settings.valid_until"}} <span>{{DateTime "short" .ExpiredUnix}}</span>{{else}}{{$.locale.Tr "settings.valid_forever"}}{{end}}</i>
+ <i>{{if not .ExpiredUnix.IsZero}}{{$.locale.Tr "settings.valid_until_date" (DateTime "short" .ExpiredUnix) | Safe}}{{else}}{{$.locale.Tr "settings.valid_forever"}}{{end}}</i>
</div>
</div>
</div>