1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-23 08:47:42 -05:00
forgejo/templates/repo/diff
Giteabot daaf0ad473
cleanup locale function usage (#27227) (#27240)
Backport #27227 by @denyskon

Throughout the Gitea codebase, you can meet some weird constructions to
make `locale.Tr` work in subtemplates.
Since we now have `ctx.Locale.Tr` which solves that problem, clean up
various templates which pass `locale` through `dict` or use some weird
constructions like `$.root.locale`

Going on, it would be great to replace every case of `$.locale.Tr` and
`.locale.Tr` with `ctx.Locale.Tr`, but that needs to be done with
patience.

Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
2023-09-25 00:21:38 +00:00
..
blob_excerpt.tmpl cleanup locale function usage (#27227) (#27240) 2023-09-25 00:21:38 +00:00
box.tmpl cleanup locale function usage (#27227) (#27240) 2023-09-25 00:21:38 +00:00
comment_form.tmpl cleanup locale function usage (#27227) (#27240) 2023-09-25 00:21:38 +00:00
comment_form_datahandler.tmpl Make sure fmt catches all templates (#20979) 2022-08-31 23:58:54 +08:00
comments.tmpl cleanup locale function usage (#27227) (#27240) 2023-09-25 00:21:38 +00:00
compare.tmpl Change green buttons to primary color (#27099) 2023-09-18 22:05:31 +00:00
conversation.tmpl Change green buttons to primary color (#27099) 2023-09-18 22:05:31 +00:00
csv_diff.tmpl Fix CSV diff for added/deleted files (#21189) 2022-09-17 10:45:32 +08:00
escape_title.tmpl cleanup locale function usage (#27227) (#27240) 2023-09-25 00:21:38 +00:00
image_diff.tmpl Improve Image Diff UI (#26696) 2023-08-24 12:13:23 +00:00
new_comment.tmpl Do not reload page after adding comments in Pull Request reviews (#13877) 2021-01-08 23:49:55 +02:00
new_review.tmpl cleanup locale function usage (#27227) (#27240) 2023-09-25 00:21:38 +00:00
options_dropdown.tmpl Show outdated comments in files changed tab (#24936) 2023-06-21 16:08:12 +00:00
section_code.tmpl Add template linting via djlint (#25212) 2023-06-14 18:17:58 +00:00
section_split.tmpl cleanup locale function usage (#27227) (#27240) 2023-09-25 00:21:38 +00:00
section_unified.tmpl cleanup locale function usage (#27227) (#27240) 2023-09-25 00:21:38 +00:00
stats.tmpl Group template helper functions, remove Printf, improve template error messages (#23982) 2023-04-08 21:15:22 +08:00
whitespace_dropdown.tmpl Show outdated comments in files changed tab (#24936) 2023-06-21 16:08:12 +00:00