Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localize Email Templates #14822

Closed
6543 opened this issue Feb 27, 2021 · 3 comments · Fixed by #16200
Closed

Localize Email Templates #14822

6543 opened this issue Feb 27, 2021 · 3 comments · Fixed by #16200
Assignees
Labels
type/enhancement An improvement of existing functionality
Milestone

Comments

@6543
Copy link
Member

6543 commented Feb 27, 2021

at the moment email templates are not really localized, change this!

Gitea version 1.14.0+dev-880-gb3056a026

@6543 6543 added the type/enhancement An improvement of existing functionality label Feb 27, 2021
@6543 6543 added this to the 1.15.0 milestone Feb 27, 2021
@zeripath
Copy link
Contributor

var mailSubject bytes.Buffer
if err := subjectTemplates.ExecuteTemplate(&mailSubject, string(tplName), mailMeta); err == nil {
subject = sanitizeSubject(mailSubject.String())
} else {
log.Error("ExecuteTemplate [%s]: %v", string(tplName)+"/subject", err)
}

@6543
Copy link
Member Author

6543 commented Feb 27, 2021

refactor to: pass users into func -> group them by lang -> render for each lang -> send chuncks independent ...

@6543 6543 self-assigned this Feb 27, 2021
@6543 6543 mentioned this issue Mar 20, 2021
5 tasks
@6543 6543 changed the title Introduce $.i18n.Tr for email template render and localize them Localize Email Templates Apr 21, 2021
@6543
Copy link
Member Author

6543 commented Apr 21, 2021

Current state: all done beside replace strings in themplate with one in locale files by using Tr help function

@6543 6543 mentioned this issue Jun 19, 2021
12 tasks
6543 added a commit that referenced this issue Jun 23, 2021
AbdulrhmnGhanem pushed a commit to kitspace/gitea that referenced this issue Aug 10, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants