Skip to content

Commit aa27cbf

Browse files
webjoeltechknowlogick
authored andcommitted
Locale for button Edit on protected branch (#4442)
1 parent 6813640 commit aa27cbf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

options/locale/locale_en-US.ini

+1
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,7 @@ settings.protected_branch_deletion_desc = Disabling branch protection allows use
10971097
settings.default_branch_desc = Select a default repository branch for pull requests and code commits:
10981098
settings.choose_branch = Choose a branch…
10991099
settings.no_protected_branch = There are no protected branches.
1100+
settings.edit_protected_branch = Edit
11001101

11011102
diff.browse_source = Browse Source
11021103
diff.parent = parent

templates/repo/settings/branches.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
{{range .ProtectedBranches}}
6363
<tr>
6464
<td><div class="ui basic label blue">{{.BranchName}}</div></td>
65-
<td class="right aligned"><a class="rm ui button" href="{{$.Repository.Link}}/settings/branches/{{.BranchName}}">Edit</a></td>
65+
<td class="right aligned"><a class="rm ui button" href="{{$.Repository.Link}}/settings/branches/{{.BranchName}}">{{$.i18n.Tr "repo.settings.edit_protected_branch"}}</a></td>
6666
</tr>
6767
{{else}}
6868
<tr class="center aligned"><td>{{.i18n.Tr "repo.settings.no_protected_branch"}}</td></tr>

0 commit comments

Comments
 (0)