Skip to content

Commit 93bd435

Browse files
authored
Fix more "locale" usages (#27259)
1 parent 7960ba7 commit 93bd435

File tree

115 files changed

+224
-225
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+224
-225
lines changed

templates/admin/auth/list.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin authentication")}}
22
<div class="admin-setting-content">
33
<h4 class="ui top attached header">
4-
{{ctx.Locale.Tr "admin.auths.auth_manage_panel"}} ({{.locale.Tr "admin.total" .Total}})
4+
{{ctx.Locale.Tr "admin.auths.auth_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}})
55
<div class="ui right">
66
<a class="ui primary tiny button" href="{{AppSubUrl}}/admin/auths/new">{{ctx.Locale.Tr "admin.auths.new"}}</a>
77
</div>

templates/admin/cron.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<td>{{DateTime "full" .Next}}</td>
2727
<td>{{if gt .Prev.Year 1}}{{DateTime "full" .Prev}}{{else}}-{{end}}</td>
2828
<td>{{.ExecTimes}}</td>
29-
<td {{if ne .Status ""}}data-tooltip-content="{{.FormatLastMessage $.locale}}"{{end}} >{{if eq .Status ""}}—{{else if eq .Status "finished"}}{{svg "octicon-check" 16}}{{else}}{{svg "octicon-x" 16}}{{end}}</td>
29+
<td {{if ne .Status ""}}data-tooltip-content="{{.FormatLastMessage ctx.Locale}}"{{end}} >{{if eq .Status ""}}—{{else if eq .Status "finished"}}{{svg "octicon-check" 16}}{{else}}{{svg "octicon-x" 16}}{{end}}</td>
3030
</tr>
3131
{{end}}
3232
</tbody>

templates/admin/emails/list.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
22
<div class="admin-setting-content">
33
<h4 class="ui top attached header">
4-
{{ctx.Locale.Tr "admin.emails.email_manage_panel"}} ({{.locale.Tr "admin.total" .Total}})
4+
{{ctx.Locale.Tr "admin.emails.email_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}})
55
</h4>
66
<div class="ui attached segment">
77
<div class="ui secondary filter menu gt-ac gt-mx-0">

templates/admin/notice.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin notice")}}
22
<div class="admin-setting-content">
33
<h4 class="ui top attached header">
4-
{{ctx.Locale.Tr "admin.notices.system_notice_list"}} ({{.locale.Tr "admin.total" .Total}})
4+
{{ctx.Locale.Tr "admin.notices.system_notice_list"}} ({{ctx.Locale.Tr "admin.total" .Total}})
55
</h4>
66
<table class="ui attached segment select selectable striped table unstackable g-table-auto-ellipsis">
77
<thead>

templates/admin/org/list.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
22
<div class="admin-setting-content">
33
<h4 class="ui top attached header">
4-
{{ctx.Locale.Tr "admin.orgs.org_manage_panel"}} ({{.locale.Tr "admin.total" .Total}})
4+
{{ctx.Locale.Tr "admin.orgs.org_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}})
55
<div class="ui right">
66
<a class="ui primary tiny button" href="{{AppSubUrl}}/org/create">{{ctx.Locale.Tr "admin.orgs.new_orga"}}</a>
77
</div>

templates/admin/packages/list.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
22
<div class="admin-setting-content">
33
<h4 class="ui top attached header">
4-
{{ctx.Locale.Tr "admin.packages.package_manage_panel"}} ({{.locale.Tr "admin.total" .TotalCount}},
4+
{{ctx.Locale.Tr "admin.packages.package_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .TotalCount}},
55
{{ctx.Locale.Tr "admin.packages.total_size" (FileSize .TotalBlobSize)}},
66
{{ctx.Locale.Tr "admin.packages.unreferenced_size" (FileSize .TotalUnreferencedBlobSize)}})
77
<div class="ui right">

templates/admin/repo/list.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin")}}
22
<div class="admin-setting-content">
33
<h4 class="ui top attached header">
4-
{{ctx.Locale.Tr "admin.repos.repo_manage_panel"}} ({{.locale.Tr "admin.total" .Total}})
4+
{{ctx.Locale.Tr "admin.repos.repo_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}})
55
<div class="ui right">
66
<a class="ui primary tiny button" href="{{AppSubUrl}}/admin/repos/unadopted">{{ctx.Locale.Tr "admin.repos.unadopted"}}</a>
77
</div>

templates/admin/stacktrace-row.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</div>
1414
<div class="content gt-f1">
1515
<div class="header">{{.Process.Description}}</div>
16-
<div class="description">{{if ne .Process.Type "none"}}{{TimeSince .Process.Start .root.locale}}{{end}}</div>
16+
<div class="description">{{if ne .Process.Type "none"}}{{TimeSince .Process.Start ctx.Locale}}{{end}}</div>
1717
</div>
1818
<div>
1919
{{if or (eq .Process.Type "request") (eq .Process.Type "normal")}}

templates/admin/user/list.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
22
<div class="admin-setting-content">
33
<h4 class="ui top attached header">
4-
{{ctx.Locale.Tr "admin.users.user_manage_panel"}} ({{.locale.Tr "admin.total" .Total}})
4+
{{ctx.Locale.Tr "admin.users.user_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}})
55
<div class="ui right">
66
<a class="ui primary tiny button" href="{{AppSubUrl}}/admin/users/new">{{ctx.Locale.Tr "admin.users.new_account"}}</a>
77
</div>

templates/base/footer_content.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
</div>
1717
<div class="right-links" role="group" aria-label="{{ctx.Locale.Tr "aria.footer.links"}}">
1818
<div class="ui dropdown upward language">
19-
<span class="flex-text-inline">{{svg "octicon-globe" 14}} {{.locale.LangName}}</span>
19+
<span class="flex-text-inline">{{svg "octicon-globe" 14}} {{ctx.Locale.LangName}}</span>
2020
<div class="menu language-menu">
2121
{{range .AllLangs}}
22-
<a lang="{{.Lang}}" data-url="{{AppSubUrl}}/?lang={{.Lang}}" class="item {{if eq $.locale.Lang .Lang}}active selected{{end}}">{{.Name}}</a>
22+
<a lang="{{.Lang}}" data-url="{{AppSubUrl}}/?lang={{.Lang}}" class="item {{if eq ctx.Locale.Lang .Lang}}active selected{{end}}">{{.Name}}</a>
2323
{{end}}
2424
</div>
2525
</div>

templates/base/head_navbar.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<nav id="navbar" aria-label="{{ctx.Locale.Tr "aria.navbar"}}">
77
<div class="navbar-left ui secondary menu">
88
<!-- the logo -->
9-
<a class="item" id="navbar-logo" href="{{AppSubUrl}}/" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{.locale.Tr "home"}}{{end}}">
9+
<a class="item" id="navbar-logo" href="{{AppSubUrl}}/" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}">
1010
<img width="30" height="30" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}" aria-hidden="true">
1111
</a>
1212

1313
<!-- mobile right menu, it must be here because in mobile view, each item is a flex column, the first item is a full row column -->
1414
<div class="ui secondary menu item navbar-mobile-right">
1515
{{if .IsSigned}}
16-
<a id="mobile-notifications-icon" class="item gt-w-auto gt-p-3" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{ctx.Locale.Tr "notifications"}}" aria-label="{{.locale.Tr "notifications"}}">
16+
<a id="mobile-notifications-icon" class="item gt-w-auto gt-p-3" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{ctx.Locale.Tr "notifications"}}" aria-label="{{ctx.Locale.Tr "notifications"}}">
1717
<div class="gt-relative">
1818
{{svg "octicon-bell"}}
1919
<span class="notification_count{{if not $notificationUnreadCount}} gt-hidden{{end}}">{{$notificationUnreadCount}}</span>
@@ -111,7 +111,7 @@
111111
</div>
112112
{{end}}
113113

114-
<a class="item not-mobile gt-mx-0" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{ctx.Locale.Tr "notifications"}}" aria-label="{{.locale.Tr "notifications"}}">
114+
<a class="item not-mobile gt-mx-0" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{ctx.Locale.Tr "notifications"}}" aria-label="{{ctx.Locale.Tr "notifications"}}">
115115
<div class="gt-relative">
116116
{{svg "octicon-bell"}}
117117
<span class="notification_count{{if not $notificationUnreadCount}} gt-hidden{{end}}">{{$notificationUnreadCount}}</span>

templates/code/searchform.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<input name="t" type="hidden" value="{{.queryType}}"{{if .CodeIndexerUnavailable}} disabled{{end}}>{{svg "octicon-triangle-down" 14 "dropdown icon"}}
66
<div class="text">{{ctx.Locale.Tr (printf "explore.search.%s" (or .queryType "fuzzy"))}}</div>
77
<div class="menu">
8-
<div class="item" data-value="" data-tooltip-content="{{ctx.Locale.Tr "explore.search.fuzzy.tooltip"}}">{{.locale.Tr "explore.search.fuzzy"}}</div>
9-
<div class="item" data-value="match" data-tooltip-content="{{ctx.Locale.Tr "explore.search.match.tooltip"}}">{{.locale.Tr "explore.search.match"}}</div>
8+
<div class="item" data-value="" data-tooltip-content="{{ctx.Locale.Tr "explore.search.fuzzy.tooltip"}}">{{ctx.Locale.Tr "explore.search.fuzzy"}}</div>
9+
<div class="item" data-value="match" data-tooltip-content="{{ctx.Locale.Tr "explore.search.match.tooltip"}}">{{ctx.Locale.Tr "explore.search.match"}}</div>
1010
</div>
1111
</div>
1212
<button class="ui primary button"{{if .CodeIndexerUnavailable}} disabled{{end}}>{{ctx.Locale.Tr "explore.search"}}</button>

templates/devtest/gitea-ui.tmpl

+14-14
Original file line numberDiff line numberDiff line change
@@ -112,24 +112,24 @@
112112

113113
<div>
114114
<h1>LocaleNumber</h1>
115-
<div>{{.locale.PrettyNumber 1}}</div>
116-
<div>{{.locale.PrettyNumber 12}}</div>
117-
<div>{{.locale.PrettyNumber 123}}</div>
118-
<div>{{.locale.PrettyNumber 1234}}</div>
119-
<div>{{.locale.PrettyNumber 12345}}</div>
120-
<div>{{.locale.PrettyNumber 123456}}</div>
121-
<div>{{.locale.PrettyNumber 1234567}}</div>
115+
<div>{{ctx.Locale.PrettyNumber 1}}</div>
116+
<div>{{ctx.Locale.PrettyNumber 12}}</div>
117+
<div>{{ctx.Locale.PrettyNumber 123}}</div>
118+
<div>{{ctx.Locale.PrettyNumber 1234}}</div>
119+
<div>{{ctx.Locale.PrettyNumber 12345}}</div>
120+
<div>{{ctx.Locale.PrettyNumber 123456}}</div>
121+
<div>{{ctx.Locale.PrettyNumber 1234567}}</div>
122122
</div>
123123

124124
<div>
125125
<h1>TimeSince</h1>
126-
<div>Now: {{TimeSince .TimeNow $.locale}}</div>
127-
<div>5s past: {{TimeSince .TimePast5s $.locale}}</div>
128-
<div>5s future: {{TimeSince .TimeFuture5s $.locale}}</div>
129-
<div>2m past: {{TimeSince .TimePast2m $.locale}}</div>
130-
<div>2m future: {{TimeSince .TimeFuture2m $.locale}}</div>
131-
<div>1y past: {{TimeSince .TimePast1y $.locale}}</div>
132-
<div>1y future: {{TimeSince .TimeFuture1y $.locale}}</div>
126+
<div>Now: {{TimeSince .TimeNow ctx.Locale}}</div>
127+
<div>5s past: {{TimeSince .TimePast5s ctx.Locale}}</div>
128+
<div>5s future: {{TimeSince .TimeFuture5s ctx.Locale}}</div>
129+
<div>2m past: {{TimeSince .TimePast2m ctx.Locale}}</div>
130+
<div>2m future: {{TimeSince .TimeFuture2m ctx.Locale}}</div>
131+
<div>1y past: {{TimeSince .TimePast1y ctx.Locale}}</div>
132+
<div>1y future: {{TimeSince .TimeFuture1y ctx.Locale}}</div>
133133
</div>
134134

135135
<div>

templates/devtest/tmplerr-sub.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
sub template triggers an executing error
22

3-
{{.locale.NoSuch "asdf"}}
3+
{{ctx.Locale.NoSuch "asdf"}}

templates/explore/repo_list.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
{{end}}
6262
</div>
6363
{{end}}
64-
<div class="flex-item-body">{{ctx.Locale.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix $.locale}}</div>
64+
<div class="flex-item-body">{{ctx.Locale.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix ctx.Locale}}</div>
6565
</div>
6666
</div>
6767
{{else}}

templates/explore/repo_search.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</div>
3737
{{if and .PageIsExploreRepositories .OnlyShowRelevant}}
3838
<div class="ui message explore-relevancy-note">
39-
<span data-tooltip-content="{{ctx.Locale.Tr "explore.relevant_repositories_tooltip"}}">{{.locale.Tr "explore.relevant_repositories" ((print $.Link "?only_show_relevant=0")|Escape) | Safe}}</span>
39+
<span data-tooltip-content="{{ctx.Locale.Tr "explore.relevant_repositories_tooltip"}}">{{ctx.Locale.Tr "explore.relevant_repositories" ((print $.Link "?only_show_relevant=0")|Escape) | Safe}}</span>
4040
</div>
4141
{{end}}
4242
<div class="divider"></div>

templates/home.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{template "base/head" .}}
2-
<div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{.locale.Tr "home"}}{{end}}" class="page-content home">
2+
<div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}" class="page-content home">
33
<div class="gt-mb-5 gt-px-5">
44
<div class="center">
55
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}">

templates/install.tmpl

+12-12
Original file line numberDiff line numberDiff line change
@@ -205,73 +205,73 @@
205205
</summary>
206206
<div class="inline field">
207207
<div class="ui checkbox" id="offline-mode">
208-
<label data-tooltip-content="{{ctx.Locale.Tr "install.offline_mode_popup"}}">{{.locale.Tr "install.offline_mode"}}</label>
208+
<label data-tooltip-content="{{ctx.Locale.Tr "install.offline_mode_popup"}}">{{ctx.Locale.Tr "install.offline_mode"}}</label>
209209
<input name="offline_mode" type="checkbox" {{if .offline_mode}}checked{{end}}>
210210
</div>
211211
</div>
212212
<div class="inline field">
213213
<div class="ui checkbox" id="disable-gravatar">
214-
<label data-tooltip-content="{{ctx.Locale.Tr "install.disable_gravatar_popup"}}">{{.locale.Tr "install.disable_gravatar"}}</label>
214+
<label data-tooltip-content="{{ctx.Locale.Tr "install.disable_gravatar_popup"}}">{{ctx.Locale.Tr "install.disable_gravatar"}}</label>
215215
<input name="disable_gravatar" type="checkbox" {{if .disable_gravatar}}checked{{end}}>
216216
</div>
217217
</div>
218218
<div class="inline field">
219219
<div class="ui checkbox" id="federated-avatar-lookup">
220-
<label data-tooltip-content="{{ctx.Locale.Tr "install.federated_avatar_lookup_popup"}}">{{.locale.Tr "install.federated_avatar_lookup"}}</label>
220+
<label data-tooltip-content="{{ctx.Locale.Tr "install.federated_avatar_lookup_popup"}}">{{ctx.Locale.Tr "install.federated_avatar_lookup"}}</label>
221221
<input name="enable_federated_avatar" type="checkbox" {{if .enable_federated_avatar}}checked{{end}}>
222222
</div>
223223
</div>
224224
<div class="inline field">
225225
<div class="ui checkbox" id="enable-openid-signin">
226-
<label data-tooltip-content="{{ctx.Locale.Tr "install.openid_signin_popup"}}">{{.locale.Tr "install.openid_signin"}}</label>
226+
<label data-tooltip-content="{{ctx.Locale.Tr "install.openid_signin_popup"}}">{{ctx.Locale.Tr "install.openid_signin"}}</label>
227227
<input name="enable_open_id_sign_in" type="checkbox" {{if .enable_open_id_sign_in}}checked{{end}}>
228228
</div>
229229
</div>
230230
<div class="inline field">
231231
<div class="ui checkbox" id="disable-registration">
232-
<label data-tooltip-content="{{ctx.Locale.Tr "install.disable_registration_popup"}}">{{.locale.Tr "install.disable_registration"}}</label>
232+
<label data-tooltip-content="{{ctx.Locale.Tr "install.disable_registration_popup"}}">{{ctx.Locale.Tr "install.disable_registration"}}</label>
233233
<input name="disable_registration" type="checkbox" {{if .disable_registration}}checked{{end}}>
234234
</div>
235235
</div>
236236
<div class="inline field">
237237
<div class="ui checkbox" id="allow-only-external-registration">
238-
<label data-tooltip-content="{{ctx.Locale.Tr "install.allow_only_external_registration_popup"}}">{{.locale.Tr "install.allow_only_external_registration_popup"}}</label>
238+
<label data-tooltip-content="{{ctx.Locale.Tr "install.allow_only_external_registration_popup"}}">{{ctx.Locale.Tr "install.allow_only_external_registration_popup"}}</label>
239239
<input name="allow_only_external_registration" type="checkbox" {{if .allow_only_external_registration}}checked{{end}}>
240240
</div>
241241
</div>
242242
<div class="inline field">
243243
<div class="ui checkbox" id="enable-openid-signup">
244-
<label data-tooltip-content="{{ctx.Locale.Tr "install.openid_signup_popup"}}">{{.locale.Tr "install.openid_signup"}}</label>
244+
<label data-tooltip-content="{{ctx.Locale.Tr "install.openid_signup_popup"}}">{{ctx.Locale.Tr "install.openid_signup"}}</label>
245245
<input name="enable_open_id_sign_up" type="checkbox" {{if .enable_open_id_sign_up}}checked{{end}}>
246246
</div>
247247
</div>
248248
<div class="inline field">
249249
<div class="ui checkbox" id="enable-captcha">
250-
<label data-tooltip-content="{{ctx.Locale.Tr "install.enable_captcha_popup"}}">{{.locale.Tr "install.enable_captcha"}}</label>
250+
<label data-tooltip-content="{{ctx.Locale.Tr "install.enable_captcha_popup"}}">{{ctx.Locale.Tr "install.enable_captcha"}}</label>
251251
<input name="enable_captcha" type="checkbox" {{if .enable_captcha}}checked{{end}}>
252252
</div>
253253
</div>
254254
<div class="inline field">
255255
<div class="ui checkbox">
256-
<label data-tooltip-content="{{ctx.Locale.Tr "install.require_sign_in_view_popup"}}">{{.locale.Tr "install.require_sign_in_view"}}</label>
256+
<label data-tooltip-content="{{ctx.Locale.Tr "install.require_sign_in_view_popup"}}">{{ctx.Locale.Tr "install.require_sign_in_view"}}</label>
257257
<input name="require_sign_in_view" type="checkbox" {{if .require_sign_in_view}}checked{{end}}>
258258
</div>
259259
</div>
260260
<div class="inline field">
261261
<div class="ui checkbox">
262-
<label data-tooltip-content="{{ctx.Locale.Tr "install.default_keep_email_private_popup"}}">{{.locale.Tr "install.default_keep_email_private"}}</label>
262+
<label data-tooltip-content="{{ctx.Locale.Tr "install.default_keep_email_private_popup"}}">{{ctx.Locale.Tr "install.default_keep_email_private"}}</label>
263263
<input name="default_keep_email_private" type="checkbox" {{if .default_keep_email_private}}checked{{end}}>
264264
</div>
265265
</div>
266266
<div class="inline field">
267267
<div class="ui checkbox">
268-
<label data-tooltip-content="{{ctx.Locale.Tr "install.default_allow_create_organization_popup"}}">{{.locale.Tr "install.default_allow_create_organization"}}</label>
268+
<label data-tooltip-content="{{ctx.Locale.Tr "install.default_allow_create_organization_popup"}}">{{ctx.Locale.Tr "install.default_allow_create_organization"}}</label>
269269
<input name="default_allow_create_organization" type="checkbox" {{if .default_allow_create_organization}}checked{{end}}>
270270
</div>
271271
</div>
272272
<div class="inline field">
273273
<div class="ui checkbox">
274-
<label data-tooltip-content="{{ctx.Locale.Tr "install.default_enable_timetracking_popup"}}">{{.locale.Tr "install.default_enable_timetracking"}}</label>
274+
<label data-tooltip-content="{{ctx.Locale.Tr "install.default_enable_timetracking_popup"}}">{{ctx.Locale.Tr "install.default_enable_timetracking"}}</label>
275275
<input name="default_enable_timetracking" type="checkbox" {{if .default_enable_timetracking}}checked{{end}}>
276276
</div>
277277
</div>

templates/org/settings/options.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="required field {{if .Err_Name}}error{{end}}">
1010
<label for="org_name">{{ctx.Locale.Tr "org.org_name_holder"}}
1111
<span class="text red gt-hidden" id="org-name-change-prompt">
12-
<br>{{ctx.Locale.Tr "org.settings.change_orgname_prompt"}}<br>{{.locale.Tr "org.settings.change_orgname_redirect_prompt"}}
12+
<br>{{ctx.Locale.Tr "org.settings.change_orgname_prompt"}}<br>{{ctx.Locale.Tr "org.settings.change_orgname_redirect_prompt"}}
1313
</span>
1414
</label>
1515
<input id="org_name" name="name" value="{{.Org.Name}}" data-org-name="{{.Org.Name}}" autofocus required maxlength="40">

templates/org/team/new.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<form class="ui form" action="{{if .PageIsOrgTeamsNew}}{{.OrgLink}}/teams/new{{else}}{{.OrgLink}}/teams/{{.Team.LowerName | PathEscape}}/edit{{end}}" data-delete-url="{{.OrgLink}}/teams/{{.Team.LowerName | PathEscape}}/delete" method="post">
88
{{.CsrfTokenHtml}}
99
<h3 class="ui top attached header">
10-
{{if .PageIsOrgTeamsNew}}{{ctx.Locale.Tr "org.create_new_team"}}{{else}}{{.locale.Tr "org.teams.settings"}}{{end}}
10+
{{if .PageIsOrgTeamsNew}}{{ctx.Locale.Tr "org.create_new_team"}}{{else}}{{ctx.Locale.Tr "org.teams.settings"}}{{end}}
1111
</h3>
1212
<div class="ui attached segment">
1313
{{template "base/alert" .}}

templates/org/team/repositories.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
<button class="ui primary button gt-ml-3">{{ctx.Locale.Tr "add"}}</button>
2121
</form>
2222
<div class="gt-dib">
23-
<button class="ui primary button link-action" data-modal-confirm="{{ctx.Locale.Tr "org.teams.add_all_repos_desc"}}" data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/addall">{{.locale.Tr "add_all"}}</button>
24-
<button class="ui red button link-action" data-modal-confirm="{{ctx.Locale.Tr "org.teams.remove_all_repos_desc"}}" data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/removeall">{{.locale.Tr "remove_all"}}</button>
23+
<button class="ui primary button link-action" data-modal-confirm="{{ctx.Locale.Tr "org.teams.add_all_repos_desc"}}" data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/addall">{{ctx.Locale.Tr "add_all"}}</button>
24+
<button class="ui red button link-action" data-modal-confirm="{{ctx.Locale.Tr "org.teams.remove_all_repos_desc"}}" data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/removeall">{{ctx.Locale.Tr "remove_all"}}</button>
2525
</div>
2626
</div>
2727
{{end}}

0 commit comments

Comments
 (0)