Skip to content

Commit d92ec01

Browse files
committed
locale
1 parent 07602a0 commit d92ec01

File tree

2 files changed

+5
-3
lines changed

2 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
@@ -1021,6 +1021,8 @@ email_notifications.onmention = Only Email on Mention
10211021
email_notifications.disable = Disable Email Notifications
10221022
email_notifications.submit = Set Email Preference
10231023
email_notifications.andyourown = And Your Own Notifications
1024+
email_notifications.actions.desc = Notifications for workflow runs on repositories set up with <a target="_blank" rel="noopener noreferrer" href="%s">Gitea Actions</a>.
1025+
email_notifications.actions.failureonly = Only notify for failed workflow runs
10241026

10251027
visibility = User visibility
10261028
visibility.public = Public

templates/user/settings/notifications.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,22 @@
3232

3333
{{if .EnableActions}}
3434
<h4 class="ui top attached header">
35-
Actions
35+
{{ctx.Locale.Tr "actions.actions"}}
3636
</h4>
3737
<div class="ui attached segment">
3838
<div class="ui list flex-items-block">
3939
<div class="item">
4040
<form class="ui form tw-w-full" action="{{AppSubUrl}}/user/settings/notifications/actions" method="post">
4141
{{$.CsrfTokenHtml}}
4242
<div class="field">
43-
<label>Set email preference on Gitea Actions</label>
43+
<label>{{ctx.Locale.Tr "settings.email_notifications.actions.desc" "https://docs.gitea.com/usage/actions/overview/"}}</label>
4444
<div class="ui selection dropdown">
4545
<input name="preference" type="hidden" value="{{.ActionsEmailNotificationsPreference}}">
4646
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
4747
<div class="text"></div>
4848
<div class="menu">
4949
<div data-value="all" class="{{if eq .ActionsEmailNotificationsPreference "all"}}active selected {{end}}item">{{ctx.Locale.Tr "all"}}</div>
50-
<div data-value="failureonly" class="{{if eq .ActionsEmailNotificationsPreference "failureonly"}}active selected {{end}}item">Failure only</div>
50+
<div data-value="failureonly" class="{{if eq .ActionsEmailNotificationsPreference "failureonly"}}active selected {{end}}item">{{ctx.Locale.Tr "settings.email_notifications.actions.failureonly"}}</div>
5151
<div data-value="disabled" class="{{if eq .ActionsEmailNotificationsPreference "disabled"}}active selected {{end}}item">{{ctx.Locale.Tr "disabled"}}</div>
5252
</div>
5353
</div>

0 commit comments

Comments
 (0)