forgejo/modules
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
..
activitypub
analyze
appstate
auth
avatar
base
cache
charset
context Refactor i18n, use Locale to provide i18n/translation related functions (#18648) 2022-02-08 11:02:30 +08:00
convert
csv
doctor Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 2022-02-06 20:01:47 +01:00
emoji
eventsource
generate Use base32 for 2FA scratch token (#18384) 2022-01-26 12:10:10 +08:00
git Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 2022-02-06 20:01:47 +01:00
gitgraph Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 2022-02-06 20:01:47 +01:00
graceful
hcaptcha
highlight
hostmatcher
httpcache
httplib
indexer Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 2022-02-06 20:01:47 +01:00
json
lfs
log
markup Prevent NPE on partial match of compare URL and allow short SHA1 compare URLs (#18472) 2022-01-31 01:48:47 +02:00
metrics
migration add test coverage for original author conversion during migrations (#18506) 2022-02-01 13:20:28 -05:00
nosql
notification
options
password
pprof
private Validate migration files (#18203) 2022-01-26 10:45:51 +01:00
process
proxy
public
queue Only attempt to flush queue if the underlying worker pool is not finished (#18593) 2022-02-05 20:51:25 +00:00
recaptcha
references
repository Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 2022-02-06 20:01:47 +01:00
secret Use CryptoRandomBytes instead of CryptoRandomString (#18439) 2022-02-04 18:03:15 +01:00
session
setting Only request write when necessary (#18657) 2022-02-08 09:34:37 +08:00
ssh
storage
structs
svg
sync
templates
test
timeutil
translation Refactor i18n, use Locale to provide i18n/translation related functions (#18648) 2022-02-08 11:02:30 +08:00
typesniffer
updatechecker
upload
uri
user
util Fix non-ASCII search on database (#18437) 2022-02-01 20:59:25 +08:00
validation
web