🎨 访问授权页支持多语言 https://github.com/siyuan-note/siyuan/issues/6824
This commit is contained in:
parent
f5943cac15
commit
e257329c3e
7 changed files with 19 additions and 7 deletions
|
@ -1011,6 +1011,8 @@
|
|||
"172": " If you forget the authorization code, you can search<br>for <code class=\"b3-code\">accessAuthCode</code> in the workspace conf/conf.json",
|
||||
"173": "Please enter the access auth code",
|
||||
"174": "Unlock access",
|
||||
"175": "Please enter the verification code"
|
||||
"175": "Please enter the verification code",
|
||||
"176": "SiYuan",
|
||||
"177": "Exit application"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1011,6 +1011,8 @@
|
|||
"172": "Si olvida el código de autorización, puede buscar <code class=\"b3-code\">accessAuthCode</code> en el archivo <br>conf/conf.json del espacio de trabajo",
|
||||
"173": "Por favor ingrese el codigo de autorizacion de acceso",
|
||||
"174": "Desbloquear acceso",
|
||||
"175": "Por favor ingrese el código de verificación"
|
||||
"175": "Por favor ingrese el código de verificación",
|
||||
"176": "SiYuan",
|
||||
"177": "Salir de la aplicación"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1011,6 +1011,8 @@
|
|||
"172": "Si vous oubliez le code d'autorisation, vous pouvez rechercher <code class=\"b3-code\">accessAuthCode</code> dans le fichier <br>conf/conf.json de l'espace de travail",
|
||||
"173": "Veuillez entrer le code d'autorisation d'accès",
|
||||
"174": "Déverrouiller l'accès",
|
||||
"175": "Veuillez entrer le code de vérification"
|
||||
"175": "Veuillez entrer le code de vérification",
|
||||
"176": "SiYuan",
|
||||
"177": "Quitter l'application"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1011,6 +1011,8 @@
|
|||
"172": "如果你忘記了授權碼,可在工作空間<br>conf/conf.json 文件中搜索 <code class=\"b3-code\">accessAuthCode</code>",
|
||||
"173": "請輸入訪問授權碼",
|
||||
"174": "解鎖訪問",
|
||||
"175": "請輸入驗證碼"
|
||||
"175": "請輸入驗證碼",
|
||||
"176": "思源筆記",
|
||||
"177": "退出應用"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1011,6 +1011,8 @@
|
|||
"172": "如果你忘记了授权码,可在工作空间<br>conf/conf.json 文件中搜索 <code class=\"b3-code\">accessAuthCode</code>",
|
||||
"173": "请输入访问授权码",
|
||||
"174": "解锁访问",
|
||||
"175": "请输入验证码"
|
||||
"175": "请输入验证码",
|
||||
"176": "思源笔记",
|
||||
"177": "退出应用"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -157,7 +157,7 @@
|
|||
">
|
||||
<div style="-webkit-app-region: drag;height: 32px;width: 100%;position: absolute;top: 0;"></div>
|
||||
<div style="position: relative;z-index: 2;text-align: center">
|
||||
<h1 style="margin-bottom: 48px;">SiYuan</h1>
|
||||
<h1 style="margin-bottom: 48px;">{{.l4}}</h1>
|
||||
<input class="b3-text-filed" id="authCode" type="password" placeholder="{{.l0}}"/><br>
|
||||
<div style="position: relative;width: 240px;margin: 8px auto 0;display: none">
|
||||
<img id="captchaImg" style="top: 1px;position: absolute;height: 28px;right: 1px;cursor: pointer">
|
||||
|
@ -167,7 +167,7 @@
|
|||
<div style="color: #5f6368;font-size: 14px;margin: 16px 0;">
|
||||
{{.l2}}
|
||||
</div>
|
||||
<button class="b3-button b3-button--white" onclick="exitSiYuan()">退出 Exit</button>
|
||||
<button class="b3-button b3-button--white" onclick="exitSiYuan()">{{.l5}}</button>
|
||||
</div>
|
||||
<div style="overflow: hidden;
|
||||
position: absolute;
|
||||
|
|
|
@ -282,6 +282,8 @@ func serveCheckAuth(c *gin.Context) {
|
|||
"l1": model.Conf.Language(174),
|
||||
"l2": template.HTML(model.Conf.Language(172)),
|
||||
"l3": model.Conf.Language(175),
|
||||
"l4": model.Conf.Language(176),
|
||||
"l5": model.Conf.Language(177),
|
||||
}
|
||||
buf := &bytes.Buffer{}
|
||||
if err = tpl.Execute(buf, model); nil != err {
|
||||
|
|
Loading…
Add table
Reference in a new issue