diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index b6279d092e..f4e2d7a9c0 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -357,6 +357,10 @@ issues.in_your_repos = In your repositories [explore] repos = Repositories users = Users +stars_one = %d star +stars_few = %d stars +forks_one = %d fork +forks_few = %d forks organizations = Organizations search = Search go_to = Go to diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl index 848afd305c..0c466dffaf 100644 --- a/templates/explore/repo_list.tmpl +++ b/templates/explore/repo_list.tmpl @@ -37,10 +37,10 @@ </a> {{end}} {{if not $.DisableStars}} - <a class="text grey flex-text-inline" href="{{.Link}}/stars">{{svg "octicon-star" 16}}{{.NumStars}}</a> + <a class="text grey flex-text-inline" href="{{.Link}}/stars" aria-label="{{ctx.Locale.TrN .NumStars "explore.stars_one" "explore.stars_few" .NumStars}}">{{svg "octicon-star" 16}}{{.NumStars}}</a> {{end}} {{if not $.DisableForks}} - <a class="text grey flex-text-inline" href="{{.Link}}/forks">{{svg "octicon-git-branch" 16}}{{.NumForks}}</a> + <a class="text grey flex-text-inline" href="{{.Link}}/forks" aria-label="{{ctx.Locale.TrN .NumForks "explore.forks_one" "explore.forks_few" .NumForks}}">{{svg "octicon-git-branch" 16}}{{.NumForks}}</a> {{end}} </div> </div>