mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Change Close to either Close issue or Close pull request (#23506)
				
					
				
			Following [a discord discussion](https://discord.com/channels/322538954119184384/977026554909581334/1085560443919147138), the close button in the issue comment box is more descriptive. # Before For both issue and pull request  # After ## Issue  ## Pull request  --------- Signed-off-by: Yarden Shoham <hrsi88@gmail.com> Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
		@@ -1369,7 +1369,7 @@ issues.context.reference_issue = Reference in New Issue
 | 
			
		||||
issues.context.edit = Edit
 | 
			
		||||
issues.context.delete = Delete
 | 
			
		||||
issues.no_content = There is no content yet.
 | 
			
		||||
issues.close_issue = Close
 | 
			
		||||
issues.close = Close Issue
 | 
			
		||||
issues.pull_merged_at = `merged commit <a class="ui sha" href="%[1]s"><code>%[2]s</code></a> into <b>%[3]s</b> %[4]s`
 | 
			
		||||
issues.manually_pull_merged_at = `merged commit <a class="ui sha" href="%[1]s"><code>%[2]s</code></a> into <b>%[3]s</b> manually %[4]s`
 | 
			
		||||
issues.close_comment_issue = Comment and Close
 | 
			
		||||
@@ -1654,6 +1654,7 @@ pulls.update_branch_rebase = Update branch by rebase
 | 
			
		||||
pulls.update_branch_success = Branch update was successful
 | 
			
		||||
pulls.update_not_allowed = You are not allowed to update branch
 | 
			
		||||
pulls.outdated_with_base_branch = This branch is out-of-date with the base branch
 | 
			
		||||
pulls.close = Close Pull Request
 | 
			
		||||
pulls.closed_at = `closed this pull request <a id="%[1]s" href="#%[1]s">%[2]s</a>`
 | 
			
		||||
pulls.reopened_at = `reopened this pull request <a id="%[1]s" href="#%[1]s">%[2]s</a>`
 | 
			
		||||
pulls.merge_instruction_hint = `You can also view <a class="show-instruction">command line instructions</a>.`
 | 
			
		||||
 
 | 
			
		||||
@@ -116,8 +116,12 @@
 | 
			
		||||
												{{.locale.Tr "repo.issues.reopen_issue"}}
 | 
			
		||||
											</button>
 | 
			
		||||
										{{else}}
 | 
			
		||||
											<button id="status-button" class="ui red basic button" tabindex="6" data-status="{{.locale.Tr "repo.issues.close_issue"}}" data-status-and-comment="{{.locale.Tr "repo.issues.close_comment_issue"}}" data-status-val="close">
 | 
			
		||||
												{{.locale.Tr "repo.issues.close_issue"}}
 | 
			
		||||
											{{$closeTranslationKey := "repo.issues.close"}}
 | 
			
		||||
											{{if .Issue.IsPull}}
 | 
			
		||||
												{{$closeTranslationKey = "repo.pulls.close"}}
 | 
			
		||||
											{{end}}
 | 
			
		||||
											<button id="status-button" class="ui red basic button" tabindex="6" data-status="{{.locale.Tr $closeTranslationKey}}" data-status-and-comment="{{.locale.Tr "repo.issues.close_comment_issue"}}" data-status-val="close">
 | 
			
		||||
												{{.locale.Tr $closeTranslationKey}}
 | 
			
		||||
											</button>
 | 
			
		||||
										{{end}}
 | 
			
		||||
									{{end}}
 | 
			
		||||
@@ -167,8 +171,12 @@
 | 
			
		||||
													{{.locale.Tr "repo.issues.reopen_issue"}}
 | 
			
		||||
												</button>
 | 
			
		||||
											{{else}}
 | 
			
		||||
												<button id="status-button" class="ui red basic button" tabindex="6" data-status="{{.locale.Tr "repo.issues.close_issue"}}" data-status-and-comment="{{.locale.Tr "repo.issues.close_comment_issue"}}" data-status-val="close">
 | 
			
		||||
													{{.locale.Tr "repo.issues.close_issue"}}
 | 
			
		||||
											{{$closeTranslationKey := "repo.issues.close"}}
 | 
			
		||||
											{{if .Issue.IsPull}}
 | 
			
		||||
												{{$closeTranslationKey = "repo.pulls.close"}}
 | 
			
		||||
											{{end}}
 | 
			
		||||
											<button id="status-button" class="ui red basic button" tabindex="6" data-status="{{.locale.Tr $closeTranslationKey}}" data-status-and-comment="{{.locale.Tr "repo.issues.close_comment_issue"}}" data-status-val="close">
 | 
			
		||||
												{{.locale.Tr $closeTranslationKey}}
 | 
			
		||||
											</button>
 | 
			
		||||
											{{end}}
 | 
			
		||||
										{{end}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user