diff options
author | Yarden Shoham <git@yardenshoham.com> | 2023-05-06 13:10:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-06 18:10:30 +0800 |
commit | 291c86804699ca00c937bfa58f3ee6a3263ea5ae (patch) | |
tree | be3ad0beb80ee722839a12af99b3d547ea732d1a /templates/explore/users.tmpl | |
parent | e5a8ebc0ed2553a16bac4b54a74cc3e5e8036b32 (diff) | |
download | gitea-291c86804699ca00c937bfa58f3ee6a3263ea5ae.tar.gz gitea-291c86804699ca00c937bfa58f3ee6a3263ea5ae.zip |
Change `join_on` translation to `joined_on` and include placeholder for the date (#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 "joined on" and the date (and that "joined on" comes before
the date).
Some languages, like Hebrew, have no space between the "joined on" and
the date. For example:
```ini
joined_on=נרשם ב-%s
```
("joined" becomes נרשם, "on" is ב and when paired with a date we use a
dash to connect ב with the date)
Diffstat (limited to 'templates/explore/users.tmpl')
-rw-r--r-- | templates/explore/users.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/explore/users.tmpl b/templates/explore/users.tmpl index 0c1ba27448..1f3b944f5e 100644 --- a/templates/explore/users.tmpl +++ b/templates/explore/users.tmpl @@ -18,7 +18,7 @@ {{svg "octicon-mail"}} <a href="mailto:{{.Email}}" rel="nofollow">{{.Email}}</a> {{end}} - {{svg "octicon-clock"}} {{$.locale.Tr "user.join_on"}} {{DateTime "short" .CreatedUnix}} + {{svg "octicon-clock"}} {{$.locale.Tr "user.joined_on" (DateTime "short" .CreatedUnix) | Safe}} </div> </div> </div> |