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

View File

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

View File

@ -33,12 +33,12 @@
</g> </g>
</svg> </svg>
</div> </div>
<h1>欢迎来到 MiSSO</h1> <h1>Welcome to MiSSO</h1>
<p> <p>
直接访问这里好像不太对哦 You should not access this page directly.
</p> </p>
<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> </p>
</div> </div>
</body> </body>