1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 16:44:26 +00:00

fix: fix missing localization entries

This commit is contained in:
Yu Daike 2024-12-11 11:14:37 +08:00
parent e05b122ea7
commit 0e1d64c795
3 changed files with 3 additions and 2 deletions

View File

@ -3764,6 +3764,7 @@ require_action.creation.success = Create Global Require Action %s successfully.
require_action.deletion = Delete
require_action.deletion.description = Removing the Global Require Action is permanent and cannot be undone. Continue?
require_action.deletion.success = The Global Require Action has been removed.
require_action.deletion.failed = Failed to remove the Global Require Action.
workflow.disable = Disable Workflow
workflow.disable_success = Workflow '%s' disabled successfully.

View File

@ -39,7 +39,7 @@ func getRequireActionCtx(ctx *context.Context) (*requireActionsCtx, error) {
// Listing all RequireAction
func RequireAction(ctx *context.Context) {
ctx.Data["ActionsTitle"] = ctx.Tr("actions.requires")
ctx.Data["Title"] = ctx.Tr("actions.requires")
ctx.Data["PageType"] = "require_action"
ctx.Data["PageIsSharedSettingsRequireAction"] = true

View File

@ -62,7 +62,7 @@ func CreateRequireAction(ctx *context.Context, orgID int64, redirectURL string)
v, err := actions_service.CreateRequireAction(ctx, orgID, form.RepoName, form.WorkflowName)
if err != nil {
log.Error("CreateRequireAction: %v", err)
ctx.JSONError(ctx.Tr("actions.require_action.creation.failed"))
ctx.JSONError(ctx.Tr("actions.require_action.creation.failed", v.WorkflowName))
return
}
ctx.Flash.Success(ctx.Tr("actions.require_action.creation.success", v.WorkflowName))