]> source.dussan.org Git - gitea.git/commit
Refactor locale&string&template related code (#29165)
authorwxiaoguang <wxiaoguang@gmail.com>
Wed, 14 Feb 2024 21:48:45 +0000 (05:48 +0800)
committerGitHub <noreply@github.com>
Wed, 14 Feb 2024 21:48:45 +0000 (21:48 +0000)
commitf3eb835886031df7a562abc123c3f6011c81eca8
tree6db218680b00a81f2ea46675d5dde94642a232b9
parent94d06be035bac468129903c9f32e785baf3c1c3b
Refactor locale&string&template related code (#29165)

Clarify when "string" should be used (and be escaped), and when
"template.HTML" should be used (no need to escape)

And help PRs like  #29059 , to render the error messages correctly.
77 files changed:
models/actions/runner.go
models/actions/status.go
models/git/commit_status.go
models/issues/comment.go
models/shared/types/ownertype.go
modules/auth/password/password.go
modules/charset/escape_stream.go
modules/context/api.go
modules/context/base.go
modules/context/context.go
modules/context/context_response.go
modules/context/repo.go
modules/csv/csv.go
modules/markup/html.go
modules/markup/markdown/toc.go
modules/migration/messenger.go
modules/templates/helper.go
modules/timeutil/since.go
modules/translation/i18n/i18n.go
modules/translation/i18n/i18n_test.go
modules/translation/i18n/localestore.go
modules/translation/mock.go
modules/translation/translation.go
modules/web/middleware/binding.go
modules/web/middleware/flash.go
routers/api/v1/repo/file.go
routers/api/v1/repo/issue_comment.go
routers/web/admin/auths.go
routers/web/auth/password.go
routers/web/feed/convert.go
routers/web/feed/profile.go
routers/web/feed/release.go
routers/web/feed/repo.go
routers/web/org/org.go
routers/web/org/projects.go
routers/web/repo/actions/actions.go
routers/web/repo/actions/view.go
routers/web/repo/cherry_pick.go
routers/web/repo/compare.go
routers/web/repo/editor.go
routers/web/repo/issue.go
routers/web/repo/issue_content_history.go
routers/web/repo/issue_label_test.go
routers/web/repo/patch.go
routers/web/repo/projects.go
routers/web/repo/pull.go
routers/web/repo/pull_review.go
routers/web/repo/setting/avatar.go
routers/web/repo/setting/protected_branch.go
routers/web/repo/view.go
routers/web/repo/wiki.go
routers/web/user/home.go
routers/web/user/setting/profile.go
routers/web/user/task.go
routers/web/web.go
services/cron/setting.go
services/cron/tasks.go
services/forms/repo_form.go
services/mailer/mail.go
services/mailer/mail_release.go
services/mailer/mail_repo.go
services/mailer/mail_team_invite.go
templates/mail/issue/assigned.tmpl
templates/mail/issue/default.tmpl
templates/mail/notify/repo_transfer.tmpl
templates/mail/release.tmpl
templates/repo/editor/cherry_pick.tmpl
templates/repo/issue/view_content/comments.tmpl
templates/repo/issue/view_title.tmpl
tests/integration/auth_ldap_test.go
tests/integration/branches_test.go
tests/integration/pull_merge_test.go
tests/integration/release_test.go
tests/integration/repo_branch_test.go
tests/integration/signin_test.go
tests/integration/signup_test.go
tests/integration/user_test.go