Shun Miyazawa 3 лет назад
Родитель
Сommit
01eb96992b

+ 1 - 2
packages/app/public/static/locales/en_US/translation.json

@@ -627,8 +627,7 @@
   },
   "login": {
     "Sign in error": "Login error",
-    "Registration successful": "Registration successful",
-    "wait_for_admin_approval": "Please wait for administrator approval",
+    "Registration successful": "Registration successful. Please wait for administrator approval.",
     "Setup": "Setup",
     "enabled_ldap_has_configuration_problem":"LDAP is enabled but the configuration has something wrong.",
     "set_env_var_for_logs": "(Please set the environment variables <code>DEBUG=crowi:service:PassportService</code> to get the logs)"

+ 1 - 2
packages/app/public/static/locales/ja_JP/translation.json

@@ -621,8 +621,7 @@
   },
   "login": {
     "Sign in error": "ログインエラー",
-    "Registration successful": "登録完了",
-    "wait_for_admin_approval": "管理者の承認をお待ちください",
+    "Registration successful": "登録が完了しました。管理者の承認をお待ちください。",
     "Setup": "セットアップ",
     "enabled_ldap_has_configuration_problem":"LDAPは有効ですが、設定に問題があります。",
     "set_env_var_for_logs": "(ログを取得するためには、環境変数 <code>DEBUG=crowi:service:PassportService</code> を設定してください。)"

+ 1 - 2
packages/app/public/static/locales/zh_CN/translation.json

@@ -629,8 +629,7 @@
   },
 	"login": {
 		"Sign in error": "登录错误",
-		"Registration successful": "注册成功",
-    "wait_for_admin_approval": "请等待管理员批准",
+		"Registration successful": "注册成功。请等待管理员批准",
 		"Setup": "安装程序",
     "enabled_ldap_has_configuration_problem":"启用了LDAP,但配置有问题。",
     "set_env_var_for_logs": "(请设置环境变量 <code>DEBUG=crowi:service:PassportService</code> 以获得日志。)"

+ 6 - 1
packages/app/src/components/CompleteUserRegistration.tsx

@@ -1,6 +1,7 @@
 import React, { FC } from 'react';
 
 import { useTranslation } from 'next-i18next';
+import Link from 'next/link';
 
 export const CompleteUserRegistration: FC = () => {
   const { t } = useTranslation();
@@ -12,7 +13,11 @@ export const CompleteUserRegistration: FC = () => {
           <p className="alert alert-success">
             <span>{t('login.Registration successful')}</span>
           </p>
-          <span>{t('login.wait_for_admin_approval')}</span>
+          <Link href='/login' prefetch={false}>
+            <a>
+              <i className="icon-login mr-1" />{t('Sign in is here')}
+            </a>
+          </Link>
         </div>
       </div>
     </div>