mirror of
https://github.com/shadowsocks/ShadowsocksX-NG.git
synced 2026-11-14 10:13:54 +00:00
issue #81 第二部分:新 PluginOptionsDraft 会话草稿模块——带稳定行 身份的有序参数行(无值开关与空串值之分)+ 参数列表/原始文本双模式。 解析与拼装遵循受管 v2ray-plugin v1.3.2 的 SIP003 转义语义(未转义 分号分隔、首个未转义等号分键值、反斜杠转义);未修改行逐字回写原文 片段,仅显式编辑的行重新编码,既有末尾分号无结构修改时保留;不可 靠解析默认并留在原始文本模式,不强行转换。 编辑面:底部空白快速添加行(输入即提升、身份与焦点稳定)、行内 编辑与显式删除、键值⇄开关可逆且保留会话值草稿、长值「编辑值…」 独立 sheet(等宽多行、确认才写回)。未完成行(有值/开关形态却无 参数名)阻止拼装、保存与切向原始文本;模式切换与展开编辑不触发 hasChanges;原始串仍是持久化与运行时唯一载荷。CONTEXT.md 新增 Plugin parameter draft 词条;新文案入 Localizable.xcstrings(中英)。
237 lines
5.2 KiB
Plaintext
237 lines
5.2 KiB
Plaintext
{
|
||
"sourceLanguage": "zh-Hans",
|
||
"strings": {
|
||
"例如:香港服务器": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "e.g. Hong Kong server"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"值": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Value"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"删除参数行": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Delete Parameter Row"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"原始文本": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Raw Text"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"参数列表": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Parameters"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"参数名": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Key"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"名称最多 %lld 个字符": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Name must be at most %lld characters"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"存在未完成的参数行:请补全参数名、清空该行或删除它": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "An unfinished parameter row exists: complete its key, clear the row, or delete it"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"密码最多 %lld 个字符": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Password must be at most %lld characters"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"插件参数最多 %lld 个字节": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Plugin options must be at most %lld bytes"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"无值开关": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Flag"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"服务器地址最多 %lld 个字符": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Server address must be at most %lld characters"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"查看模式": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "View Mode"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"添加参数": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Add Parameter"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"确认": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Confirm"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"端口必须是 1–65535 的数字(最多 %lld 位)": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Port must be a number from 1 to 65535 (at most %lld digits)"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"类型": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Kind"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"编辑值…": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Edit Value…"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"缺少参数名": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Missing key"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"请输入服务器名称": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Enter a server name"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"重置": {
|
||
"extractionState": "manual",
|
||
"localizations": {
|
||
"en": {
|
||
"stringUnit": {
|
||
"state": "translated",
|
||
"value": "Reset"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"version": "1.0"
|
||
} |