Skip to content

Commit 410301f

Browse files
authored
Improve localization of git activity stats (#6848)
1 parent 46373e7 commit 410301f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

options/locale/locale_en-US.ini

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,15 +1065,18 @@ activity.no_git_activity = There has not been any commit activity in this period
10651065
activity.git_stats_exclude_merges = Excluding merges,
10661066
activity.git_stats_author_1 = %d author
10671067
activity.git_stats_author_n = %d authors
1068-
activity.git_stats_pushed = has pushed
1068+
activity.git_stats_pushed_1 = has pushed
1069+
activity.git_stats_pushed_n = have pushed
10691070
activity.git_stats_commit_1 = %d commit
10701071
activity.git_stats_commit_n = %d commits
10711072
activity.git_stats_push_to_branch = to %s and
10721073
activity.git_stats_push_to_all_branches = to all branches.
10731074
activity.git_stats_on_default_branch = On %s,
10741075
activity.git_stats_file_1 = %d file
10751076
activity.git_stats_file_n = %d files
1076-
activity.git_stats_files_changed = have changed and there have been
1077+
activity.git_stats_files_changed_1 = has changed
1078+
activity.git_stats_files_changed_n = have changed
1079+
activity.git_stats_additions = and there have been
10771080
activity.git_stats_addition_1 = %d addition
10781081
activity.git_stats_addition_n = %d additions
10791082
activity.git_stats_and_deletions = and

templates/repo/activity.tmpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,15 @@
9292
<div class="ui attached segment text">
9393
{{.i18n.Tr "repo.activity.git_stats_exclude_merges" }}
9494
<strong>{{.i18n.Tr (TrN .i18n.Lang .Activity.Code.AuthorCount "repo.activity.git_stats_author_1" "repo.activity.git_stats_author_n") .Activity.Code.AuthorCount }}</strong>
95-
{{.i18n.Tr "repo.activity.git_stats_pushed" }}
95+
{{.i18n.Tr (TrN .i18n.Lang .Activity.Code.AuthorCount "repo.activity.git_stats_pushed_1" "repo.activity.git_stats_pushed_n") }}
9696
<strong>{{.i18n.Tr (TrN .i18n.Lang .Activity.Code.CommitCount "repo.activity.git_stats_commit_1" "repo.activity.git_stats_commit_n") .Activity.Code.CommitCount }}</strong>
9797
{{.i18n.Tr "repo.activity.git_stats_push_to_branch" .Repository.DefaultBranch }}
9898
<strong>{{.i18n.Tr (TrN .i18n.Lang .Activity.Code.CommitCountInAllBranches "repo.activity.git_stats_commit_1" "repo.activity.git_stats_commit_n") .Activity.Code.CommitCountInAllBranches }}</strong>
9999
{{.i18n.Tr "repo.activity.git_stats_push_to_all_branches" }}
100100
{{.i18n.Tr "repo.activity.git_stats_on_default_branch" .Repository.DefaultBranch }}
101101
<strong>{{.i18n.Tr (TrN .i18n.Lang .Activity.Code.ChangedFiles "repo.activity.git_stats_file_1" "repo.activity.git_stats_file_n") .Activity.Code.ChangedFiles }}</strong>
102-
{{.i18n.Tr "repo.activity.git_stats_files_changed" }}
102+
{{.i18n.Tr (TrN .i18n.Lang .Activity.Code.ChangedFiles "repo.activity.git_stats_files_changed_1" "repo.activity.git_stats_files_changed_n") }}
103+
{{.i18n.Tr "repo.activity.git_stats_additions" }}
103104
<strong class="text green">{{.i18n.Tr (TrN .i18n.Lang .Activity.Code.Additions "repo.activity.git_stats_addition_1" "repo.activity.git_stats_addition_n") .Activity.Code.Additions }}</strong>
104105
{{.i18n.Tr "repo.activity.git_stats_and_deletions" }}
105106
<strong class="text red">{{.i18n.Tr (TrN .i18n.Lang .Activity.Code.Deletions "repo.activity.git_stats_deletion_1" "repo.activity.git_stats_deletion_n") .Activity.Code.Deletions }}</strong>.

0 commit comments

Comments
 (0)