forgejo/templates/repo/diff
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
..
blob_excerpt.tmpl Ensure that blob-excerpt links work for wiki (#18587) 2022-02-05 18:26:12 +00:00
box.tmpl Add warning for BIDI characters in page renders and in diffs (#17562) 2022-01-07 02:18:52 +01:00
comment_form.tmpl Refactor repo-legacy.js, remove messy global variables. Fix errors. (#17646) 2021-11-19 00:45:00 +08:00
comment_form_datahandler.tmpl
comments.tmpl Refactor i18n, use Locale to provide i18n/translation related functions (#18648) 2022-02-08 11:02:30 +08:00
compare.tmpl Improve interface when comparing a branch which has created a pull request (#17911) 2021-12-24 12:14:42 +00:00
conversation.tmpl
csv_diff.tmpl
image_diff.tmpl Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
new_comment.tmpl
new_review.tmpl
options_dropdown.tmpl Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
section_split.tmpl Ensure that blob-excerpt links work for wiki (#18587) 2022-02-05 18:26:12 +00:00
section_unified.tmpl Ensure that blob-excerpt links work for wiki (#18587) 2022-02-05 18:26:12 +00:00
stats.tmpl Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
whitespace_dropdown.tmpl