Skip to content

Localize Email Templates #14822

@6543

Description

@6543
Member

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

Gitea version 1.14.0+dev-880-gb3056a026

Activity

added this to the 1.15.0 milestone on Feb 27, 2021
zeripath

zeripath commented on Feb 27, 2021

@zeripath
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

6543 commented on Feb 27, 2021

@6543
MemberAuthor

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

self-assigned this
on Feb 27, 2021
changed the title [-]Introduce `$.i18n.Tr` for email template render and localize them[/-] [+]Localize Email Templates[/+] on Apr 21, 2021
6543

6543 commented on Apr 21, 2021

@6543
MemberAuthor

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

added a commit that references this issue on Jun 23, 2021
be81dc8
added a commit that references this issue on Aug 10, 2021
9149383
locked and limited conversation to collaborators on Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type/enhancementAn improvement of existing functionality

Type

No type

Projects

No projects

Relationships

None yet

    Development

    Participants

    @zeripath@6543

    Issue actions

      Localize Email Templates · Issue #14822 · go-gitea/gitea