diff options
author | Gusted <williamzijl7@hotmail.com> | 2022-06-27 22:58:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 15:58:46 -0500 |
commit | d55a0b723809f5b94acd948b924c8518014445e0 (patch) | |
tree | 0ef9ea54f30769ca1d16ce20e551bd7a078f7f5e /templates/repo/issue/labels/edit_delete_label.tmpl | |
parent | b551bc2a089d3310dde5706d1b9702f112fe3ea0 (diff) | |
download | gitea-d55a0b723809f5b94acd948b924c8518014445e0.tar.gz gitea-d55a0b723809f5b94acd948b924c8518014445e0.zip |
Refactor `i18n` to `locale` (#20153)
* Refactor `i18n` to `locale`
- Currently we're using the `i18n` variable naming for the `locale`
struct. This contains locale's specific information and cannot be used
for general i18n purpose, therefore refactoring it to `locale` makes
more sense.
- Ref: https://github.com/go-gitea/gitea/pull/20096#discussion_r906699200
* Update routers/install/install.go
Diffstat (limited to 'templates/repo/issue/labels/edit_delete_label.tmpl')
-rw-r--r-- | templates/repo/issue/labels/edit_delete_label.tmpl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/templates/repo/issue/labels/edit_delete_label.tmpl b/templates/repo/issue/labels/edit_delete_label.tmpl index 19f422cdfe..a0479dde1b 100644 --- a/templates/repo/issue/labels/edit_delete_label.tmpl +++ b/templates/repo/issue/labels/edit_delete_label.tmpl @@ -1,26 +1,26 @@ <div class="ui small basic delete modal"> <div class="ui icon header"> {{svg "octicon-trash"}} - {{.i18n.Tr "repo.issues.label_deletion"}} + {{.locale.Tr "repo.issues.label_deletion"}} </div> <div class="content"> - <p>{{.i18n.Tr "repo.issues.label_deletion_desc"}}</p> + <p>{{.locale.Tr "repo.issues.label_deletion_desc"}}</p> </div> <div class="actions"> <div class="ui red basic inverted cancel button"> <i class="remove icon"></i> - {{.i18n.Tr "modal.no"}} + {{.locale.Tr "modal.no"}} </div> <div class="ui green basic inverted ok button"> <i class="checkmark icon"></i> - {{.i18n.Tr "modal.yes"}} + {{.locale.Tr "modal.yes"}} </div> </div> </div> <div class="ui small edit-label modal"> <div class="header"> - {{.i18n.Tr "repo.issues.label_modify"}} + {{.locale.Tr "repo.issues.label_modify"}} </div> <div class="content"> <form class="ui edit-label form ignore-dirty" action="{{$.Link}}/edit" method="post"> @@ -29,12 +29,12 @@ <div class="ui grid"> <div class="three wide column"> <div class="ui small input"> - <input class="new-label-input emoji-input" name="title" placeholder="{{.i18n.Tr "repo.issues.new_label_placeholder"}}" autofocus required maxlength="50"> + <input class="new-label-input emoji-input" name="title" placeholder="{{.locale.Tr "repo.issues.new_label_placeholder"}}" autofocus required maxlength="50"> </div> </div> <div class="five wide column"> <div class="ui small fluid input"> - <input class="new-label-desc-input" name="description" placeholder="{{.i18n.Tr "repo.issues.new_label_desc_placeholder"}}" maxlength="200"> + <input class="new-label-desc-input" name="description" placeholder="{{.locale.Tr "repo.issues.new_label_desc_placeholder"}}" maxlength="200"> </div> </div> <div class="color picker column"> @@ -48,10 +48,10 @@ </div> <div class="actions"> <div class="ui negative button"> - {{.i18n.Tr "cancel"}} + {{.locale.Tr "cancel"}} </div> <div class="ui positive button"> - {{.i18n.Tr "save"}} + {{.locale.Tr "save"}} </div> </div> </div> |