Skip to content

Commit 16bd04f

Browse files
committed
change style & use locale
1 parent 9cc80fe commit 16bd04f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

options/locale/locale_en-US.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,6 +1969,7 @@ pulls.status_checks_requested = Required
19691969
pulls.status_checks_details = Details
19701970
pulls.status_checks_hide_all = Hide all checks
19711971
pulls.status_checks_show_all = Show all checks
1972+
pulls.status_checks_approve_all = Approve all workflows
19721973
pulls.update_branch = Update branch by merge
19731974
pulls.update_branch_rebase = Update branch by rebase
19741975
pulls.update_branch_success = Branch update was successful
@@ -3890,6 +3891,7 @@ workflow.has_workflow_dispatch = This workflow has a workflow_dispatch event tri
38903891
workflow.has_no_workflow_dispatch = Workflow '%s' has no workflow_dispatch event trigger.
38913892

38923893
need_approval_desc = Need approval to run workflows for fork pull request.
3894+
approve_all_success = All workflow runs are approved successfully.
38933895

38943896
variables = Variables
38953897
variables.management = Variables Management

routers/web/repo/actions/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ func ApproveAllChecks(ctx *context_module.Context) {
870870
return
871871
}
872872

873-
ctx.Flash.Success("Successfully approved all pending checks")
873+
ctx.Flash.Success(ctx.Tr("actions.approve_all_success"))
874874
ctx.Redirect(redirect)
875875
}
876876

templates/repo/pulls/status.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
<form method="post" action="{{.RepoLink}}/actions/approve-all-checks?redirect={{.IssueLink}}">
2929
{{ctx.RootData.CsrfTokenHtml}}
3030
<input type="hidden" name="sha" value="{{.SHA}}">
31-
<button type="submit" class="ui small tiny compact button primary">
32-
Approve workflows to run
31+
<button type="submit" class="ui basic small compact button">
32+
{{ctx.Locale.Tr "repo.pulls.status_checks_approve_all"}}
3333
</button>
3434
</form>
3535
{{end}}

0 commit comments

Comments
 (0)