更改翻译

master
落雨楓 3 years ago
parent 126c1a1337
commit 479c07678b

@ -1,9 +1,10 @@
{ {
"name": "Isekai OpenID Connect", "name": "Isekai OpenID Connect",
"namemsg": "isekai-oidc-name",
"author": "hyperzlib", "author": "hyperzlib",
"version": "1.1.0", "version": "1.1.0",
"url": "https://www.isekai.cn", "url": "https://www.isekai.cn",
"descriptionmsg": "ucenter-desc", "descriptionmsg": "isekai-oidc-desc",
"license-name": "MIT", "license-name": "MIT",
"type": "other", "type": "other",
"requires": { "requires": {

@ -1,4 +1,7 @@
{ {
"isekai-oidc-name": "Isekai OpenID Connect",
"isekai-oidc-desc": "Login by OpenID",
"isekaioidc-loginbutton": "Isekai Account Login", "isekaioidc-loginbutton": "Isekai Account Login",
"isekaioidc-loginbutton-help": "Login with Isekai Project Account", "isekaioidc-loginbutton-help": "Login with Isekai Project Account",
"isekaioidc-login-failed": "Unknow error while OIDC", "isekaioidc-login-failed": "Unknow error while OIDC",

@ -1,4 +1,7 @@
{ {
"isekai-oidc-name": "异世界百科 OpenID Connect",
"isekai-oidc-desc": "使用OpenID登录账号",
"isekaioidc-loginbutton": "异世界百科账号登录", "isekaioidc-loginbutton": "异世界百科账号登录",
"isekaioidc-loginbutton-help": "使用异世界百科账号登录", "isekaioidc-loginbutton-help": "使用异世界百科账号登录",
"isekaioidc-login-failed": "无法登录,请求中发生错误", "isekaioidc-login-failed": "无法登录,请求中发生错误",

@ -22,7 +22,7 @@ class ApiOidcWebhook extends ApiBase {
if (isset($wgIsekaiOIDC['webhookKey'])) { if (isset($wgIsekaiOIDC['webhookKey'])) {
if (!isset($queryValues['key']) || $queryValues['key'] !== $wgIsekaiOIDC['webhookKey']) { if (!isset($queryValues['key']) || $queryValues['key'] !== $wgIsekaiOIDC['webhookKey']) {
$this->addError('isekaioidc-api-key-invalid', '-1', [ 'provider' => $provider ]); $this->addError('isekaioidc-api-key error', '-1', [ 'provider' => $provider ]);
return; return;
} }
} }

Loading…
Cancel
Save