From 410301f0eee6d5cc37d483147bf64526708f0f72 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Sat, 4 May 2019 23:32:37 +0300 Subject: [PATCH] Improve localization of git activity stats (#6848) --- options/locale/locale_en-US.ini | 7 +++++-- templates/repo/activity.tmpl | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index fe90d65451..4e2ae51538 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1065,7 +1065,8 @@ activity.no_git_activity = There has not been any commit activity in this period activity.git_stats_exclude_merges = Excluding merges, activity.git_stats_author_1 = %d author activity.git_stats_author_n = %d authors -activity.git_stats_pushed = has pushed +activity.git_stats_pushed_1 = has pushed +activity.git_stats_pushed_n = have pushed activity.git_stats_commit_1 = %d commit activity.git_stats_commit_n = %d commits activity.git_stats_push_to_branch = to %s and @@ -1073,7 +1074,9 @@ activity.git_stats_push_to_all_branches = to all branches. activity.git_stats_on_default_branch = On %s, activity.git_stats_file_1 = %d file activity.git_stats_file_n = %d files -activity.git_stats_files_changed = have changed and there have been +activity.git_stats_files_changed_1 = has changed +activity.git_stats_files_changed_n = have changed +activity.git_stats_additions = and there have been activity.git_stats_addition_1 = %d addition activity.git_stats_addition_n = %d additions activity.git_stats_and_deletions = and diff --git a/templates/repo/activity.tmpl b/templates/repo/activity.tmpl index 5b6559c8bf..8ee5b55904 100644 --- a/templates/repo/activity.tmpl +++ b/templates/repo/activity.tmpl @@ -92,14 +92,15 @@
{{.i18n.Tr "repo.activity.git_stats_exclude_merges" }} {{.i18n.Tr (TrN .i18n.Lang .Activity.Code.AuthorCount "repo.activity.git_stats_author_1" "repo.activity.git_stats_author_n") .Activity.Code.AuthorCount }} - {{.i18n.Tr "repo.activity.git_stats_pushed" }} + {{.i18n.Tr (TrN .i18n.Lang .Activity.Code.AuthorCount "repo.activity.git_stats_pushed_1" "repo.activity.git_stats_pushed_n") }} {{.i18n.Tr (TrN .i18n.Lang .Activity.Code.CommitCount "repo.activity.git_stats_commit_1" "repo.activity.git_stats_commit_n") .Activity.Code.CommitCount }} {{.i18n.Tr "repo.activity.git_stats_push_to_branch" .Repository.DefaultBranch }} {{.i18n.Tr (TrN .i18n.Lang .Activity.Code.CommitCountInAllBranches "repo.activity.git_stats_commit_1" "repo.activity.git_stats_commit_n") .Activity.Code.CommitCountInAllBranches }} {{.i18n.Tr "repo.activity.git_stats_push_to_all_branches" }} {{.i18n.Tr "repo.activity.git_stats_on_default_branch" .Repository.DefaultBranch }} {{.i18n.Tr (TrN .i18n.Lang .Activity.Code.ChangedFiles "repo.activity.git_stats_file_1" "repo.activity.git_stats_file_n") .Activity.Code.ChangedFiles }} - {{.i18n.Tr "repo.activity.git_stats_files_changed" }} + {{.i18n.Tr (TrN .i18n.Lang .Activity.Code.ChangedFiles "repo.activity.git_stats_files_changed_1" "repo.activity.git_stats_files_changed_n") }} + {{.i18n.Tr "repo.activity.git_stats_additions" }} {{.i18n.Tr (TrN .i18n.Lang .Activity.Code.Additions "repo.activity.git_stats_addition_1" "repo.activity.git_stats_addition_n") .Activity.Code.Additions }} {{.i18n.Tr "repo.activity.git_stats_and_deletions" }} {{.i18n.Tr (TrN .i18n.Lang .Activity.Code.Deletions "repo.activity.git_stats_deletion_1" "repo.activity.git_stats_deletion_n") .Activity.Code.Deletions }}.