Skip to content

Commit d26b2b8

Browse files
sahinakkayasilverwind
authored andcommitted
De-duplicate contributor graph translations (go-gitea#29247)
1 parent 27f712b commit d26b2b8

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

options/locale/locale_en-US.ini

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,10 +1985,7 @@ contributors.contribution_type.filter_label = Contribution type:
19851985
contributors.contribution_type.commits = Commits
19861986
contributors.contribution_type.additions = Additions
19871987
contributors.contribution_type.deletions = Deletions
1988-
contributors.loading_title = Loading contributions...
1989-
contributors.loading_title_failed = Could not load contributions
1990-
contributors.loading_info = This might take a bit…
1991-
contributors.component_failed_to_load = An unexpected error happened.
1988+
contributors.what = contributions
19921989

19931990
search = Search
19941991
search.search_repo = Search repository
@@ -2593,6 +2590,12 @@ error.csv.too_large = Can't render this file because it is too large.
25932590
error.csv.unexpected = Can't render this file because it contains an unexpected character in line %d and column %d.
25942591
error.csv.invalid_field_count = Can't render this file because it has a wrong number of fields in line %d.
25952592
2593+
[graphs]
2594+
component_loading = Loading %s...
2595+
component_loading_failed = Could not load %s
2596+
component_loading_info = This might take a bit…
2597+
component_failed_to_load = An unexpected error happened.
2598+
25962599
[org]
25972600
org_name_holder = Organization Name
25982601
org_full_name_holder = Organization Full Name

templates/repo/contributors.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
data-locale-contribution-type-commits="{{ctx.Locale.Tr "repo.contributors.contribution_type.commits"}}"
55
data-locale-contribution-type-additions="{{ctx.Locale.Tr "repo.contributors.contribution_type.additions"}}"
66
data-locale-contribution-type-deletions="{{ctx.Locale.Tr "repo.contributors.contribution_type.deletions"}}"
7-
data-locale-loading-title="{{ctx.Locale.Tr "repo.contributors.loading_title"}}"
8-
data-locale-loading-title-failed="{{ctx.Locale.Tr "repo.contributors.loading_title_failed"}}"
9-
data-locale-loading-info="{{ctx.Locale.Tr "repo.contributors.loading_info"}}"
10-
data-locale-component-failed-to-load="{{ctx.Locale.Tr "repo.contributors.component_failed_to_load"}}"
7+
data-locale-loading-title="{{ctx.Locale.Tr "graphs.component_loading" (ctx.Locale.Tr "repo.contributors.what")}}"
8+
data-locale-loading-title-failed="{{ctx.Locale.Tr "graphs.component_loading_failed" (ctx.Locale.Tr "repo.contributors.what")}}"
9+
data-locale-loading-info="{{ctx.Locale.Tr "graphs.component_loading_info"}}"
10+
data-locale-component-failed-to-load="{{ctx.Locale.Tr "graphs.component_failed_to_load"}}"
1111
>
1212
</div>
1313
{{end}}

0 commit comments

Comments
 (0)