You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
3 years ago
..
admin
Refactor i18n, use Locale to provide i18n/translation related functions ( #18648 )
3 years ago
base
Refactor i18n, use Locale to provide i18n/translation related functions ( #18648 )
3 years ago
custom
Add footer extra links template ( #9576 )
5 years ago
explore
Allow to filter repositories by language in explore, user and organization repositories lists ( #18430 )
3 years ago
mail
Unify and simplify TrN for i18n ( #18141 )
3 years ago
org
Use "read" value for General Access ( #18496 )
3 years ago
repo
Refactor i18n, use Locale to provide i18n/translation related functions ( #18648 )
3 years ago
shared
Refactor i18n, use Locale to provide i18n/translation related functions ( #18648 )
3 years ago
status
Refactor HTTP request context ( #17979 )
3 years ago
swagger
API: Return primary language and repository language stats API URL ( #18396 )
3 years ago
user
Refactor i18n, use Locale to provide i18n/translation related functions ( #18648 )
3 years ago
home.tmpl
Rename StaticUrlPrefix to AssetUrlPrefix ( #15779 )
4 years ago
install.tmpl
Refactor install page (db type) ( #17919 )
3 years ago
post-install.tmpl
Rename StaticUrlPrefix to AssetUrlPrefix ( #15779 )
4 years ago