i18n: Refactor translation management tools and add ignore feature for dynamic resources

- Updated README.md to reflect changes in translation management tools and added ignore mark feature for dynamic resources.
- Created Chinese translation guide for the translation management tools.
- Created English translation guide for the translation management tools.
- Enhanced translation-cleaner.py to skip keys marked with /*keep*/ during cleanup.
- Improved translation-manager.py to create backups only when updating keys interactively.
- Updated zh_CN.json with new translations and added ignore marks for dynamic values.
This commit is contained in:
月月
2025-07-16 23:36:47 +08:00
parent 2ad60a40a8
commit 8a68cf207a
11 changed files with 145 additions and 98 deletions
+18 -8
View File
@@ -1,4 +1,11 @@
{
"Mo": "一/*keep*/",
"Tu": "二/*keep*/",
"We": "三/*keep*/",
"Th": "四/*keep*/",
"Fr": "五/*keep*/",
"Sa": "六/*keep*/",
"Su": "日/*keep*/",
"%1 characters": "%1 个字符",
"**Pricing**: free. Data used for training.\n\n**Instructions**: Log into Google account, allow AI Studio to create Google Cloud project or whatever it asks, go back and click Get API key": "**价格**:免费。数据用于训练。\n\n**说明**:登录 Google 账户,允许 AI Studio 创建 Google Cloud 项目或其他要求,然后返回并点击获取 API 密钥",
"**Pricing**: free. Data use policy varies depending on your OpenRouter account settings.\n\n**Instructions**: Log into OpenRouter account, go to Keys on the topright menu, click Create API Key": "**价格**:免费。数据使用政策取决于您的 OpenRouter 账户设置。\n\n**说明**:登录 OpenRouter 账户,在右上角菜单中选择 Keys,点击创建 API 密钥",
@@ -96,7 +103,7 @@
"Save": "保存",
"Save to Downloads": "保存到下载文件夹",
"Search": "搜索",
"Search the web": "搜索网络",
"Search the web": "在网络上搜索",
"Search, calculate or run": "搜索、计算或运行",
"Select Language": "选择语言",
"Session": "会话",
@@ -170,7 +177,6 @@
"Set the system prompt for the model.": "为模型设置系统提示。",
"To Do": "待办",
"Calendar": "日历",
"notifications": "条通知",
"Advanced": "高级",
"About": "关于",
"Services": "服务",
@@ -212,7 +218,7 @@
"Policies": "策略",
"Weeb": "二次元",
"Closet": "隐藏",
"Bar style": "Bar 样式",
"Bar style": "条栏样式",
"Show next time": "下次显示",
"Usage": "用法",
"Plain rectangle": "纯矩形",
@@ -281,7 +287,7 @@
"Screen snip": "屏幕截图",
"Mic toggle": "麦克风切换",
"Hover to reveal": "悬停显示",
"Bar": "Bar",
"Bar": "条栏",
"Show background": "显示背景",
"Show regions of potential interest": "显示可能感兴趣的区域",
"Color picker": "取色器",
@@ -303,8 +309,12 @@
"Drag or click a region • LMB: Copy • RMB: Edit": "拖动或点击一个区域 • 鼠标左键:复制 • 鼠标右键:编辑",
"Current model: %1\nSet it with %2model MODEL": "当前模型:%1\n使用 %2model MODEL 设置",
"Message the model... \"%1\" for commands": "与模型对话... \"%1\" 查看命令",
"The current system prompt is\n\n---\n\n%1": "The current system prompt is\n\n---\n\n%1",
"Model set to %1": "Model set to %1",
"Online models disallowed for %1\n\nControlled by `policies.ai` config option": "Online models disallowed for %1\n\nControlled by `policies.ai` config option",
"Loaded the following system prompt\n\n---\n\n%1": "Loaded the following system prompt\n\n---\n\n%1"
"The current system prompt is\n\n---\n\n%1": "当前系统提示词为\n\n---\n\n%1",
"Model set to %1": "模型已设置为 %1",
"Online models disallowed for %1\n\nControlled by `policies.ai` config option": "%1 禁止使用在线模型\n\n由 `policies.ai` 配置项控制",
"Loaded the following system prompt\n\n---\n\n%1": "已加载以下系统提示词\n\n---\n\n%1",
"%1 notifications": "%1 条通知",
"Save chat from %1": "保存聊天记录到 %1",
"Load chat from %1": "从 %1 加载聊天记录",
"Load prompt from %1": "从 %1 加载提示词"
}