feat: i18n and gmssl install

This commit is contained in:
Bai
2026-05-26 11:16:50 +08:00
parent 7fc87644d6
commit 77b2096d7b
4 changed files with 70 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ RUN set -ex \
RUN set -ex \
&& python3 -c "import urllib.request; urllib.request.urlretrieve('https://github.com/guanzhi/GmSSL/releases/download/v${GMSSL_VERSION}/GmSSL-${GMSSL_VERSION}-Linux.sh', '/tmp/gmssl-install.sh')" \
&& chmod +x /tmp/gmssl-install.sh \
&& /tmp/gmssl-install.sh --prefix=/usr/local --skip-license --include-subdir \
&& /tmp/gmssl-install.sh --prefix=/usr/local --skip-license \
&& echo "/usr/local/GmSSL-${GMSSL_VERSION}-Linux/lib" > /etc/ld.so.conf.d/gmssl.conf \
&& ldconfig \
&& rm -f /tmp/gmssl-install.sh

View File

@@ -1732,5 +1732,27 @@
"CertOwnerOther": "Other User",
"CertOwnerUnknown": "Unknown",
"UserCertificate": "User certificate",
"LoginCertificate": "Login certificate"
"LoginCertificate": "Login certificate",
"IssueCertificateDone": "Issue Certificate Done",
"RefreshCertificateInfoDone": "Refresh Certificate Info Done",
"CertIssueCertDone": "Certificate issued successfully",
"CertDeleteCertDone": "Certificate deleted successfully",
"CertDeleteCertMethodNotFound": "deleteCert method not found in driver config",
"CertResetPINDone": "PIN reset successfully",
"CertAdminResetPINMethodNotFound": "adminResetPIN method not found in driver config",
"CertChangePINDone": "PIN changed successfully",
"CertUserChangePINMethodNotFound": "userChangePIN method not found in driver config",
"CertRefreshCertInfoDone": "Certificate info refreshed",
"CertStepSucceeded": "[{step}] succeeded",
"CertStepFailed": "[{step}] failed: {err}",
"CertDriverConfigLoaded": "Driver config loaded",
"CertDriverConfigLoadFailed": "Driver config load failed: {msg}",
"CertDriverLoadFailed": "Driver load failed, please check the backend service",
"CertConstructorNotFound": "Constructor \"{name}\" not found, please verify the driver script is loaded correctly",
"CertDriverInstanceCreated": "Driver loaded, instance created ({name})",
"CertUKeyInstanceFailed": "UKey instance creation failed: {msg}",
"CertExecutionFailed": "Execution failed",
"CertMethodNotFound": "Method not found in driver instance: {method}",
"CertMethodMappingNotFound": "Method mapping not found in driver config: {name}",
"CertEnrollStepNotFound": "Step not found in enroll config: {key}"
}

View File

@@ -1743,5 +1743,27 @@
"CertOwnerOther": "非当前用户",
"CertOwnerUnknown": "未知",
"UserCertificate": "用户证书",
"LoginCertificate": "登录证书"
"LoginCertificate": "登录证书",
"IssueCertificateDone": "制证完成",
"RefreshCertificateInfoDone": "刷新证书信息完成",
"CertIssueCertDone": "证书签发完成",
"CertDeleteCertDone": "证书删除完成",
"CertDeleteCertMethodNotFound": "驱动配置中未找到 deleteCert 方法",
"CertResetPINDone": "PIN 码重置完成",
"CertAdminResetPINMethodNotFound": "驱动配置中未找到 adminResetPIN 方法",
"CertChangePINDone": "PIN 码修改完成",
"CertUserChangePINMethodNotFound": "驱动配置中未找到 userChangePIN 方法",
"CertRefreshCertInfoDone": "证书信息已刷新",
"CertStepSucceeded": "[{step}] 成功",
"CertStepFailed": "[{step}] 失败:{err}",
"CertDriverConfigLoaded": "驱动配置加载成功",
"CertDriverConfigLoadFailed": "驱动配置加载失败:{msg}",
"CertDriverLoadFailed": "驱动加载失败,请检查后端服务",
"CertConstructorNotFound": "构造函数 \"{name}\" 未找到,请确认驱动脚本已正确加载",
"CertDriverInstanceCreated": "驱动加载完成,实例已创建({name}",
"CertUKeyInstanceFailed": "UKey 实例创建失败:{msg}",
"CertExecutionFailed": "操作执行失败",
"CertMethodNotFound": "驱动实例中未找到方法:{method}",
"CertMethodMappingNotFound": "驱动配置中未找到方法映射:{name}",
"CertEnrollStepNotFound": "签发配置中未找到步骤:{key}"
}

View File

@@ -1741,5 +1741,27 @@
"CertOwnerOther": "非當前使用者",
"CertOwnerUnknown": "未知",
"UserCertificate": "用戶憑證",
"LoginCertificate": "登入憑證"
"LoginCertificate": "登入憑證",
"IssueCertificateDone": "制證完成",
"RefreshCertificateInfoDone": "刷新憑證資訊完成",
"CertIssueCertDone": "憑證簽發完成",
"CertDeleteCertDone": "憑證刪除完成",
"CertDeleteCertMethodNotFound": "驅動配置中未找到 deleteCert 方法",
"CertResetPINDone": "PIN 碼重置完成",
"CertAdminResetPINMethodNotFound": "驅動配置中未找到 adminResetPIN 方法",
"CertChangePINDone": "PIN 碼修改完成",
"CertUserChangePINMethodNotFound": "驅動配置中未找到 userChangePIN 方法",
"CertRefreshCertInfoDone": "憑證資訊已刷新",
"CertStepSucceeded": "[{step}] 成功",
"CertStepFailed": "[{step}] 失敗:{err}",
"CertDriverConfigLoaded": "驅動配置載入成功",
"CertDriverConfigLoadFailed": "驅動配置載入失敗:{msg}",
"CertDriverLoadFailed": "驅動載入失敗,請檢查後端服務",
"CertConstructorNotFound": "建構函式 \"{name}\" 未找到,請確認驅動腳本已正確載入",
"CertDriverInstanceCreated": "驅動載入完成,實例已建立({name}",
"CertUKeyInstanceFailed": "UKey 實例建立失敗:{msg}",
"CertExecutionFailed": "操作執行失敗",
"CertMethodNotFound": "驅動實例中未找到方法:{method}",
"CertMethodMappingNotFound": "驅動配置中未找到方法映射:{name}",
"CertEnrollStepNotFound": "簽發配置中未找到步驟:{key}"
}