Feature: add tooltips to the generate-passcode dialog
Every control the operator can use on the passcode-generation dialog now explains itself on hover, reusing the MFC built-in tooltip mechanism from the build-server dialog (EnableToolTips + OnToolHitTest + TTN_NEEDTEXT, with the max tip width applied when the tip is requested so the explicit line breaks hold; hidden controls are skipped). The password, private-key and Generate tips carry the main point: a passcode is only valid when produced with the right super-admin password (V1) or a legitimate private key (V2); tampered passwords, forged keys and hand-assembled values always fail client verification. The root-credential tip now describes the field as the downward credential filled in after generating, which is what V2 actually writes there. All 18 texts are translated in the en_US, de_DE and zh_TW packs. Co-Authored-By: deepseek-flash
This commit is contained in:
1 parent
a32219f05c
commit
f22bd574ea
5 files changed
+189
No files matched your search
@@ -2392,3 +2392,23 @@ MCP
|
||||
|
||||
; File manager remote Open: preview disabled feedback
|
||||
预览功能已禁用,无法打开文件。可在参数中启用预览后重试。=Preview is disabled, so the file cannot be opened. Enable preview in Settings and try again.
|
||||
|
||||
; Keygen dialog tooltips (CPwdGenDlg)
|
||||
授权版本(仅超级管理员可切换):\nV1 (HMAC):用本机超级管理员密码签名,兼容旧版客户端;\nV2 (ECDSA):用私钥文件签名,安全性更高。=License version (only a super administrator can switch):\nV1 (HMAC): signed with this master's super-admin password, compatible with older clients;\nV2 (ECDSA): signed with a private key file, more secure.
|
||||
要授权的设备序列号,按「计算机硬件信息」\n或「主控IP/域名」绑定方式计算,最长 19 个字符。\n生成的授权只对这个序列号有效,填错客户端将无法使用。=Serial number of the device to authorize, computed from the "Computer hardware"\nor "Master IP/domain" binding mode, up to 19 characters.\nThe generated license only works for this serial number; a wrong value will not work on the client.
|
||||
授权起始日期,默认今天。\n客户端在该日期之前无法通过验证。=License start date, today by default.\nThe client cannot pass verification before this date.
|
||||
授权到期日期,到期后客户端无法通过验证。\n请确保晚于起始日期。=License expiry date; the client cannot pass verification after it.\nMake sure it is later than the start date.
|
||||
该授权允许同时连接的主控数量(2~10000)。\n超出后新连接会被拒绝。=Number of masters allowed to connect simultaneously under this license (2-10000).\nAdditional connections are rejected.
|
||||
【仅 V1】本机超级管理员密码,用于派生口令校验码。\n【重点】只有密码与服务器记录的哈希一致时,\n才能生成有效口令;密码输入错误、被篡改,\n或手工拼接的口令,客户端验证一律不通过。=[V1 only] This master's super-admin password, used to derive the passcode checksum.\n[IMPORTANT] A valid passcode can only be generated when the password matches the hash stored on the server.\nA wrong or tampered password, or a hand-assembled passcode, will always fail client verification.
|
||||
【仅 V2】与服务器内置公钥配对的私钥文件(.key/.pem)。\n【重点】只有用合法私钥签名的授权才有效;\n私钥缺失、被替换或口令被篡改,客户端验证一律不通过。=[V2 only] Private key file paired with the public key built into the server (.key/.pem).\n[IMPORTANT] Only licenses signed with a valid private key are accepted.\nA missing or replaced key, or a tampered passcode, will always fail client verification.
|
||||
浏览并选择 V2 私钥文件。\n仅超级管理员可用;已配置有效私钥时该按钮置灰。=Browse for a V2 private key file.\nOnly a super administrator can use this; the button is greyed out when a valid key is configured.
|
||||
生成新的 V2 密钥对:私钥保存到文件,公钥代码复制到剪贴板。\n【注意】必须把新公钥部署到验证端(重新编译)后才能签发有效授权;\n仅超级管理员可用;已配置有效私钥时该按钮置灰。=Generate a new V2 key pair: the private key is saved to a file and the public-key code is copied to the clipboard.\n[NOTE] You must deploy the new public key to the verifier (rebuild) before it can issue valid licenses.\nOnly a super administrator can use this; the button is greyed out when a valid key is configured.
|
||||
【仅 V2】签发给下级的授权允许的并发连接数(2~10000)。\n默认跟随「连接数」,手动修改后不再自动同步。=[V2 only] Concurrent connection limit for licenses issued to sub-levels (2-10000).\nIt follows "Connections" by default; after a manual change it no longer syncs automatically.
|
||||
生成的口令(只读),格式:起始日期-到期日期-连接数-校验码。\n请连同 HMAC 一起导入客户端;多层授权时还需根凭证。\n任一字符被改动都会导致验证失败。=Generated passcode (read-only), format: start date-end date-connections-checksum.\nImport it into the client together with the HMAC; multi-level authorization also needs the root credential.\nChanging any character will cause verification to fail.
|
||||
口令的签名(只读):V1 为数字签名,V2 为 ECDSA 签名。\n必须与口令、序列号一一对应,否则客户端验证失败。=Signature of the passcode (read-only): numeric for V1, ECDSA for V2.\nIt must match the passcode and serial number exactly, or client verification fails.
|
||||
根凭证(只读):生成口令后自动填入,供下级主控继续签发授权。\n内容来自本机已有的上级授权,或在 V2 模式下由本机私钥签发。\n为空只表示本机没有可下发的凭证,不影响本机自用授权。=Root credential (read-only): filled in automatically after generating a passcode, for sub-level masters to issue further licenses.\nIt comes from this master's existing parent authorization, or is signed locally with the private key in V2 mode.\nEmpty only means this master has no credential to pass down; it does not affect this master's own license.
|
||||
为这张授权同时下发 FRP 反向代理配置,让该设备经 FRP 上线。\n需要先在「扩展 → 下级 FRP 代理设置」中配置 FRPS。=Also issue an FRP reverse-proxy configuration for this license so the device comes online through FRP.\nConfigure FRPS first in "Extensions -> Sub-level FRP proxy settings".
|
||||
分配给该设备的 FRP 远程端口(1024~65535)。\n可点「自动」分配下一个空闲端口。=FRP remote port assigned to this device (1024-65535).\nClick "Auto" to assign the next free port.
|
||||
自动查找并填入下一个可用的 FRP 远程端口。\n保存授权时才会真正记录端口占用。=Find and fill in the next available FRP remote port.\nThe port is only recorded when the license is saved.
|
||||
按当前参数生成口令。\n【重点】必须满足 V1 密码正确或 V2 私钥合法,\n否则生成的口令无效;篡改密码、伪造私钥或\n手工拼接得到的结果,客户端验证都会失败。=Generate a passcode from the current settings.\n[IMPORTANT] V1 requires the correct password and V2 requires a valid private key;\notherwise the generated passcode is invalid. Tampered passwords, forged keys or\nhand-assembled values will always fail client verification.
|
||||
把生成的口令/HMAC/根凭证保存到 licenses.ini,\n并可导出 .lic 文件。只有成功生成口令后才可用;\n本机给自己授权时会自动保存。=Save the generated passcode/HMAC/root credential to licenses.ini,\nand optionally export a .lic file. Available only after a passcode is generated;\nwhen authorizing this machine itself, it is saved automatically.
|
||||
Reference in new issue
Block a user