Skip to content

Commit 993b866

Browse files
techknowlogicklafriks
authored andcommitted
Minor copy changes (#3074)
* Minor copy changes Fixes #3058 * Use TrN for translations that depend on count Fix minor type with branches count
1 parent ab62da2 commit 993b866

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

modules/context/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ func RepoAssignment() macaron.Handler {
407407
return
408408
}
409409
ctx.Data["Branches"] = brs
410-
ctx.Data["BrancheCount"] = len(brs)
410+
ctx.Data["BranchesCount"] = len(brs)
411411

412412
// If not branch selected, try default one.
413413
// If default branch doesn't exists, fall back to some other branch.

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ pulls = Pull Requests
539539
labels = Labels
540540
milestones = Milestones
541541
commits = Commits
542+
commit = Commit
542543
releases = Releases
543544
file_raw = Raw
544545
file_history = History

templates/repo/sub_menu.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<div class="ui two horizontal center link list">
33
{{if and (.Repository.UnitEnabled $.UnitTypeCode) (not .IsBareRepo)}}
44
<div class="item{{if .PageIsCommits}} active{{end}}">
5-
<a href="{{.RepoLink}}/commits{{if .IsViewBranch}}/branch{{else if .IsViewTag}}/tag{{else if .IsViewCommit}}/commit{{end}}/{{EscapePound .BranchName}}"><i class="octicon octicon-history"></i> <b>{{.CommitsCount}}</b> {{.i18n.Tr "repo.commits"}}</a>
5+
<a href="{{.RepoLink}}/commits{{if .IsViewBranch}}/branch{{else if .IsViewTag}}/tag{{else if .IsViewCommit}}/commit{{end}}/{{EscapePound .BranchName}}"><i class="octicon octicon-history"></i> <b>{{.CommitsCount}}</b> {{.i18n.Tr (TrN .i18n.Lang .CommitsCount "repo.commit" "repo.commits") }}</a>
66
</div>
77
{{end}}
88
{{if and (.Repository.UnitEnabled $.UnitTypeCode) (not .IsBareRepo) }}
99
<div class="item{{if .PageIsBranches}} active{{end}}">
10-
<a href="{{.RepoLink}}/branches/"><i class="octicon octicon-git-branch"></i> <b>{{.BrancheCount}}</b> {{.i18n.Tr "repo.branches"}}</a>
10+
<a href="{{.RepoLink}}/branches/"><i class="octicon octicon-git-branch"></i> <b>{{.BranchesCount}}</b> {{.i18n.Tr (TrN .i18n.Lang .BranchesCount "repo.branch" "repo.branches") }}</a>
1111
</div>
1212
{{end}}
1313
</div>

0 commit comments

Comments
 (0)