summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel da Rosa <webjoel@users.noreply.github.com>2018-07-13 17:57:20 -0300
committertechknowlogick <techknowlogick@users.noreply.github.com>2018-07-13 16:57:20 -0400
commitaa27cbf2293ea2facc374c83c17ef36320696eb0 (patch)
tree95720d1a7b564fce92b83bc169ed767a78c6cc38
parent6813640d2fb21cc8f047b00df091d2fa8d32eaa5 (diff)
downloadgitea-aa27cbf2293ea2facc374c83c17ef36320696eb0.tar.gz
gitea-aa27cbf2293ea2facc374c83c17ef36320696eb0.zip
Locale for button Edit on protected branch (#4442)
-rw-r--r--options/locale/locale_en-US.ini1
-rw-r--r--templates/repo/settings/branches.tmpl2
2 files changed, 2 insertions, 1 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 2420bd66f8..9a618e6654 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -1097,6 +1097,7 @@ settings.protected_branch_deletion_desc = Disabling branch protection allows use
settings.default_branch_desc = Select a default repository branch for pull requests and code commits:
settings.choose_branch = Choose a branch…
settings.no_protected_branch = There are no protected branches.
+settings.edit_protected_branch = Edit
diff.browse_source = Browse Source
diff.parent = parent
diff --git a/templates/repo/settings/branches.tmpl b/templates/repo/settings/branches.tmpl
index b685217c87..85c1867713 100644
--- a/templates/repo/settings/branches.tmpl
+++ b/templates/repo/settings/branches.tmpl
@@ -62,7 +62,7 @@
{{range .ProtectedBranches}}
<tr>
<td><div class="ui basic label blue">{{.BranchName}}</div></td>
- <td class="right aligned"><a class="rm ui button" href="{{$.Repository.Link}}/settings/branches/{{.BranchName}}">Edit</a></td>
+ <td class="right aligned"><a class="rm ui button" href="{{$.Repository.Link}}/settings/branches/{{.BranchName}}">{{$.i18n.Tr "repo.settings.edit_protected_branch"}}</a></td>
</tr>
{{else}}
<tr class="center aligned"><td>{{.i18n.Tr "repo.settings.no_protected_branch"}}</td></tr>