templates: Translate to en_US

This commit is contained in:
Peter Cai 2023-02-24 16:17:04 +01:00
parent 950f521002
commit f4be6e135a
3 changed files with 16 additions and 16 deletions

View File

@ -1,7 +1,7 @@
{{ define "consent.tmpl" }}
<html lang="zh">
<head>
<title>授权确认</title>
<title>Confirm authorization</title>
{{ template "head.tmpl" }}
<style>
ul.scopes,
@ -134,13 +134,13 @@
<div>
<p>
应用程序
Application
<span class="app-name">{{ .clientName }}</span>
正请求
is requesting
<br />
读取
access to account
<span class="user-name">{{ .user.name }}</span>
的这些信息:
with the following scopes:
</p>
<ul class="scopes">
@ -158,27 +158,27 @@
{{ if or .clientPolicy .clientTos }}
<ul class="app-terms">
{{ if .clientPolicy }}
<li><a href="{{ .clientPolicy }}" target="_blank" referrerpolicy="no-referrer">使用政策</a></li>
<li><a href="{{ .clientPolicy }}" target="_blank" referrerpolicy="no-referrer">Client Usage Policy</a></li>
{{ end }}
{{ if .clientTos }}
<li><a href="{{ .clientTos }}" target="_blank" referrerpolicy="no-referrer">服务条款</a></li>
<li><a href="{{ .clientTos }}" target="_blank" referrerpolicy="no-referrer">Terms of Service</a></li>
{{ end }}
</ul>
{{ end }}
</div>
<div class="consent-notice">
<p>是否接受该请求?</p>
<p>Accept the request?</p>
<p class="remember">
<input type="checkbox" id="remember" name="remember" value="true" />
<label for="remember">记住我的选择</label>
<label for="remember">Remember my choice</label>
</p>
</div>
<p class="buttons">
<button type="submit" name="action" value="reject" class="reject">拒绝</button>
<button type="submit" name="action" value="accept" class="accept">接受</button>
<button type="submit" name="action" value="reject" class="reject">Reject</button>
<button type="submit" name="action" value="accept" class="accept">Accept</button>
</p>
</form>
</body>

View File

@ -1,7 +1,7 @@
{{ define "error.tmpl" }}
<html lang="zh">
<head>
<title>出错了</title>
<title>Error</title>
{{ template "head.tmpl" }}
<style>
.error {
@ -23,7 +23,7 @@
</g>
</svg>
</div>
<h1>发生了一些错误</h1>
<h1>An error happened</h1>
<p class="error">{{ .error }}</p>
</div>
</body>

View File

@ -33,12 +33,12 @@
</g>
</svg>
</div>
<h1>欢迎来到 MiSSO</h1>
<h1>Welcome to MiSSO</h1>
<p>
直接访问这里好像不太对哦
You should not access this page directly.
</p>
<p>
<a class="primary" href="https://docs.nya.one/peripheral/misso/">查看文档</a>
<a class="primary" href="https://docs.nya.one/peripheral/misso/">Documentation</a>
</p>
</div>
</body>