mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-11-16 23:04:24 +08:00
fix(i18n): use English runtime text and localize system UI
This commit is contained in:
@@ -15,7 +15,7 @@ func handleLogicError(c *gin.Context, err error) bool {
|
||||
if err == nil {
|
||||
return false
|
||||
}
|
||||
return apiutil.AbortNotFoundIfMissing(c, err, "记录不存在")
|
||||
return apiutil.AbortNotFoundIfMissing(c, err, "Record was not found")
|
||||
}
|
||||
|
||||
// GetCertificates 列出 TLS 证书。
|
||||
@@ -170,12 +170,12 @@ func ImportCertificateFile(c *gin.Context) {
|
||||
remark := c.PostForm("remark")
|
||||
certFile, err := c.FormFile("cert_file")
|
||||
if err != nil {
|
||||
response.AbortBadRequest(c, "缺少证书文件")
|
||||
response.AbortBadRequest(c, "Missing certificate file")
|
||||
return
|
||||
}
|
||||
keyFile, err := c.FormFile("key_file")
|
||||
if err != nil {
|
||||
response.AbortBadRequest(c, "缺少私钥文件")
|
||||
response.AbortBadRequest(c, "Missing private key file")
|
||||
return
|
||||
}
|
||||
certificate, err := CreateCertificateFromFiles(c.Request.Context(), name, certFile, keyFile, remark)
|
||||
|
||||
Reference in New Issue
Block a user