From 720c197ccfe45ce3755c9549b337f4efbce2b381 Mon Sep 17 00:00:00 2001 From: Matti R Date: Sun, 3 Dec 2017 02:04:04 -0500 Subject: [PATCH 1/2] Minor copy changes Fixes #3058 --- options/locale/locale_en-US.ini | 1 + templates/repo/sub_menu.tmpl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index c69a5941be559..b22bcf3c28ec0 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -539,6 +539,7 @@ pulls = Pull Requests labels = Labels milestones = Milestones commits = Commits +commit = Commit releases = Releases file_raw = Raw file_history = History diff --git a/templates/repo/sub_menu.tmpl b/templates/repo/sub_menu.tmpl index e9f74209d67ea..2f52c08653f25 100644 --- a/templates/repo/sub_menu.tmpl +++ b/templates/repo/sub_menu.tmpl @@ -2,12 +2,12 @@ From a66f4e3b4132a10184b17cd8b9862406b74d750f Mon Sep 17 00:00:00 2001 From: Matti R Date: Sun, 3 Dec 2017 11:18:03 -0500 Subject: [PATCH 2/2] Use TrN for translations that depend on count Fix minor type with branches count --- modules/context/repo.go | 2 +- templates/repo/sub_menu.tmpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/context/repo.go b/modules/context/repo.go index e8d084c342a16..66250a0f3eb8f 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -407,7 +407,7 @@ func RepoAssignment() macaron.Handler { return } ctx.Data["Branches"] = brs - ctx.Data["BrancheCount"] = len(brs) + ctx.Data["BranchesCount"] = len(brs) // If not branch selected, try default one. // If default branch doesn't exists, fall back to some other branch. diff --git a/templates/repo/sub_menu.tmpl b/templates/repo/sub_menu.tmpl index 2f52c08653f25..cd37f80b70e81 100644 --- a/templates/repo/sub_menu.tmpl +++ b/templates/repo/sub_menu.tmpl @@ -2,12 +2,12 @@