%[1]s
to %[3]s
@@ -3266,3 +3234,35 @@ deletion = Remove secret
deletion.description = Removing a secret will revoke its access to repositories. Continue?
deletion.success = The secret has been removed.
deletion.failed = Failed to remove secret.
+
+[actions]
+actions = Actions
+description = Manage actions
+open_tab = %d Open
+closed_tab = %d Closed
+
+runners = Runners
+runners.runner_manage_panel = Runners Management
+runners.new = Create new Runner
+runners.new_notice = Show runner installation documentation
+runners.status = Status
+runners.id = ID
+runners.owner_type = Type
+runners.description = Description
+runners.labels = Labels
+runners.latest_online = Last Online Time
+runners.agent_labels = Agent Labels
+runners.custom_labels = Custom Labels
+runners.custom_labels_helper = Custom labels are labels that are not automatically added by the agent. They are added by the administrator. Use comma separated.
+runners.runner_title = Runner
+runners.task_list = Recent jobs on this runner
+runners.edit_runner = Edit Runner
+runners.update_runner = Update Changes
+runners.update_runner_success = Runner updated successfully
+runners.update_runner_failed = Failed to update runner
+runners.delete_runner = Delete this runner
+runners.delete_runner_success = Runner deleted successfully
+runners.delete_runner_failed = Failed to delete runner
+runners.delete_runner_header = Confirm to delete this runner
+runners.delete_runner_notice = If job is running on this runner, it will be terminated and mark as failed. It may break building workflow.
+runners.delete_runner_confirm = Delete this runner
diff --git a/routers/web/admin/runners.go b/routers/web/admin/runners.go
index 84fa092d4c..a70b53fdcb 100644
--- a/routers/web/admin/runners.go
+++ b/routers/web/admin/runners.go
@@ -21,7 +21,7 @@ const (
// Runners show all the runners
func Runners(ctx *context.Context) {
- ctx.Data["Title"] = ctx.Tr("admin.runners")
+ ctx.Data["Title"] = ctx.Tr("actions.runners")
ctx.Data["PageIsAdmin"] = true
ctx.Data["PageIsAdminRunners"] = true
@@ -44,7 +44,7 @@ func Runners(ctx *context.Context) {
// EditRunner show editing runner page
func EditRunner(ctx *context.Context) {
- ctx.Data["Title"] = ctx.Tr("admin.runners.edit_runner")
+ ctx.Data["Title"] = ctx.Tr("actions.runners.edit_runner")
ctx.Data["PageIsAdmin"] = true
ctx.Data["PageIsAdminRunners"] = true
@@ -58,7 +58,7 @@ func EditRunner(ctx *context.Context) {
// EditRunnerPost response for editing runner
func EditRunnerPost(ctx *context.Context) {
- ctx.Data["Title"] = ctx.Tr("admin.runners.edit")
+ ctx.Data["Title"] = ctx.Tr("actions.runners.edit")
ctx.Data["PageIsAdmin"] = true
ctx.Data["PageIsAdminRunners"] = true
actions_shared.RunnerDetailsEditPost(ctx, ctx.ParamsInt64(":runnerid"), 0, 0,
diff --git a/routers/web/repo/actions/actions.go b/routers/web/repo/actions/actions.go
index 34ddaad99b..a2b5199066 100644
--- a/routers/web/repo/actions/actions.go
+++ b/routers/web/repo/actions/actions.go
@@ -44,7 +44,7 @@ func MustEnableActions(ctx *context.Context) {
}
func List(ctx *context.Context) {
- ctx.Data["Title"] = ctx.Tr("repo.actions")
+ ctx.Data["Title"] = ctx.Tr("actions.actions")
ctx.Data["PageIsActions"] = true
var workflows git.Entries
diff --git a/routers/web/shared/actions/runners.go b/routers/web/shared/actions/runners.go
index d578667c48..7cf1db5d76 100644
--- a/routers/web/shared/actions/runners.go
+++ b/routers/web/shared/actions/runners.go
@@ -136,14 +136,14 @@ func RunnerDetailsEditPost(ctx *context.Context, runnerID, ownerID, repoID int64
err = actions_model.UpdateRunner(ctx, runner, "description", "custom_labels")
if err != nil {
log.Warn("RunnerDetailsEditPost.UpdateRunner failed: %v, url: %s", err, ctx.Req.URL)
- ctx.Flash.Warning(ctx.Tr("admin.runners.update_runner_failed"))
+ ctx.Flash.Warning(ctx.Tr("actions.runners.update_runner_failed"))
ctx.Redirect(redirectTo)
return
}
log.Debug("RunnerDetailsEditPost success: %s", ctx.Req.URL)
- ctx.Flash.Success(ctx.Tr("admin.runners.update_runner_success"))
+ ctx.Flash.Success(ctx.Tr("actions.runners.update_runner_success"))
ctx.Redirect(redirectTo)
}
@@ -155,7 +155,7 @@ func RunnerResetRegistrationToken(ctx *context.Context, ownerID, repoID int64, r
return
}
- ctx.Flash.Success(ctx.Tr("admin.runners.reset_registration_token_success"))
+ ctx.Flash.Success(ctx.Tr("actions.runners.reset_registration_token_success"))
ctx.Redirect(redirectTo)
}
diff --git a/templates/admin/navbar.tmpl b/templates/admin/navbar.tmpl
index 4f4e9e55b4..b31930431a 100644
--- a/templates/admin/navbar.tmpl
+++ b/templates/admin/navbar.tmpl
@@ -35,7 +35,7 @@
{{end}}
{{if .EnableActions}}
- {{.locale.Tr "admin.runners"}}
+ {{.locale.Tr "actions.runners"}}
{{end}}
diff --git a/templates/repo/actions/openclose.tmpl b/templates/repo/actions/openclose.tmpl
index b172f2bc64..eabec6cf83 100644
--- a/templates/repo/actions/openclose.tmpl
+++ b/templates/repo/actions/openclose.tmpl
@@ -1,10 +1,10 @@
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index b635f71a15..42d8f35897 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -185,7 +185,7 @@
{{if and .EnableActions (not .UnitActionsGlobalDisabled) (.Permission.CanRead $.UnitTypeActions)}}
- {{svg "octicon-play"}} {{.locale.Tr "repo.actions"}}
+ {{svg "octicon-play"}} {{.locale.Tr "actions.actions"}}
{{if .Repository.NumOpenRuns}}
{{CountFmt .Repository.NumOpenRuns}}
{{end}}
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index c36f59a94f..1f8928db1f 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -436,7 +436,7 @@
{{if .EnableActions}}
{{$isActionsEnabled := .Repository.UnitEnabled $.Context $.UnitTypeActions}}