diff options
author | Yarden Shoham <git@yardenshoham.com> | 2023-05-06 16:11:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-06 21:11:27 +0800 |
commit | 46679554d01b0475b4339fb3c5fec96da3a7e202 (patch) | |
tree | 7a9e7b775bccab0904ca943942074aa0ed48a62b /templates/shared/secrets | |
parent | 95e2e3aa30d777a8298319885bb885befa870396 (diff) | |
download | gitea-46679554d01b0475b4339fb3c5fec96da3a7e202.tar.gz gitea-46679554d01b0475b4339fb3c5fec96da3a7e202.zip |
Change `add_on` translation to `added_on` and include placeholder for the date (#24562)
- Very similar to #24550
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 "added on" and the date (and that "added on" comes before
the date).
Some languages, like Hebrew, have no space between the "added on" and
the date. For example:
```ini
added_on=נוסף ב-%s
```
("added" becomes נוסף, "on" is ב and when paired with a date we use a
dash to connect ב with the date)
---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'templates/shared/secrets')
-rw-r--r-- | templates/shared/secrets/add_list.tmpl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/shared/secrets/add_list.tmpl b/templates/shared/secrets/add_list.tmpl index e743c16f95..8a6b7db907 100644 --- a/templates/shared/secrets/add_list.tmpl +++ b/templates/shared/secrets/add_list.tmpl @@ -44,8 +44,7 @@ <div class="print meta">******</div> <div class="activity meta"> <i> - {{$.locale.Tr "settings.add_on"}} - <span>{{.CreatedUnix.FormatShort}}</span> + {{$.locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix) | Safe}} </i> </div> </div> |