diff options
author | Sunny Wan <94445569+SunnyWan59@users.noreply.github.com> | 2024-07-11 19:23:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-11 23:23:31 +0000 |
commit | 4913edaa70a48f7c5a524f680ca921ed515d6ec2 (patch) | |
tree | db94332e1cb00268a596a73fc9627c5c143342f0 /services | |
parent | fa160b915db6ed2c9efefccfb5f7a5bb00badb96 (diff) | |
download | gitea-4913edaa70a48f7c5a524f680ca921ed515d6ec2.tar.gz gitea-4913edaa70a48f7c5a524f680ca921ed515d6ec2.zip |
Display app name in the registration email title (#31562)
I changed the title of the registation email from "Welcome to Gitea" to
"Welcome to (appname)". I did this by substituting 'Gitea' in
register_notify to %s and formating the registration title in mail.go. I
changed this for all the languages I could, but I struggled to changed
the translation file for Farsi. I have attached the screenshots of
before and after and the related issue below.
Related issue:
https://github.com/go-gitea/gitea/issues/31108
Before change:
![Screenshot from 2024-07-04
22-32-17](https://github.com/go-gitea/gitea/assets/94445569/4178b51c-1acc-45f4-9750-dff41564a709)
After:
![Screenshot from 2024-07-04
22-32-01](https://github.com/go-gitea/gitea/assets/94445569/9cd7a58d-c0f5-4a3c-a66c-805c55411eaa)
---------
Signed-off-by: Sunny Wan <Sunnywan2020@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'services')
-rw-r--r-- | services/mailer/mail.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/mailer/mail.go b/services/mailer/mail.go index 11810a036d..1f5df6efe7 100644 --- a/services/mailer/mail.go +++ b/services/mailer/mail.go @@ -158,7 +158,7 @@ func SendRegisterNotifyMail(u *user_model.User) { return } - msg := NewMessage(u.EmailTo(), locale.TrString("mail.register_notify"), content.String()) + msg := NewMessage(u.EmailTo(), locale.TrString("mail.register_notify", setting.AppName), content.String()) msg.Info = fmt.Sprintf("UID: %d, registration notify", u.ID) SendAsync(msg) |