0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-02 16:07:15 +01:00
gitea/modules/context
wxiaoguang a60e8be8d1
Refactor i18n, use Locale to provide i18n/translation related functions (#18648)
* remove unnecessary web context data fields, and unify the i18n/translation related functions to `Locale`
* in development, show an error if a translation key is missing
* remove the unnecessary loops `for _, lang := range translation.AllLangs()` for every request, which improves the performance slightly
* use `ctx.Locale.Language()` instead of `ctx.Data["Lang"].(string)`
* add more comments about how the Locale/LangType fields are used
2022-02-08 11:02:30 +08:00
..
access_log.go
api_org.go
api_test.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
api.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
auth.go Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
captcha.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
context.go Refactor i18n, use Locale to provide i18n/translation related functions (#18648) 2022-02-08 11:02:30 +08:00
csrf.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
form.go Add config options to hide issue events (#17414) 2022-01-21 18:59:26 +01:00
org.go Team permission allow different unit has different permission (#17811) 2022-01-05 11:37:00 +08:00
pagination.go
permission.go
private.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
repo.go Automatically pause queue if index service is unavailable (#15066) 2022-01-27 10:30:51 +02:00
response.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
xsrf_test.go
xsrf.go