i18n: Refactor string formatting to use arg() method for translations

This commit is contained in:
月月
2025-07-16 21:11:27 +08:00
parent b98e843a9d
commit 2ad60a40a8
11 changed files with 85 additions and 72 deletions
+25 -21
View File
@@ -4,8 +4,8 @@
"**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 密钥",
". Notes for Zerochan:\n- You must enter a color\n- Set your zerochan username in `sidebar.booru.zerochan.username` config option. You [might be banned for not doing so](https://www.zerochan.net/api#:~:text=The%20request%20may%20still%20be%20completed%20successfully%20without%20this%20custom%20header%2C%20but%20your%20project%20may%20be%20banned%20for%20being%20anonymous.)!": ". Notes for Zerochan:\n- You must enter a color\n- Set your zerochan username in `sidebar.booru.zerochan.username` config option. You [might be banned for not doing so](https://www.zerochan.net/api#:~:text=The%20request%20may%20still%20be%20completed%20successfully%20without%20this%20custom%20header%2C%20but%20your%20project%20may%20be%20banned%20for%20being%20anonymous.)!",
"<i>No further instruction provided</i>": "<i>未提供进一步说明</i>",
"API key set for {0}": "已为 {0} 设置 API 密钥",
"API key:\n\n```txt\n{0}\n```": "API 密钥:\n\n```txt\n{0}\n```",
"API key set for %1": "已为 %1 设置 API 密钥",
"API key:\n\n```txt\n%1\n```": "API 密钥:\n\n```txt\n%1\n```",
"Action": "操作",
"Add": "添加",
"Add task": "添加任务",
@@ -35,8 +35,7 @@
"Closes right sidebar on press": "按下时关闭右侧边栏",
"Copy": "复制",
"Copy code": "复制代码",
"Current API endpoint: {0}\nSet it with {1}mode PROVIDER": "当前 API 端点:{0}\n使用 {1}mode PROVIDER 设置",
"Current model: {0}\nSet it with {1}model MODEL": "当前模型:{0}\n使用 {1}model MODEL 设置",
"Current API endpoint: %1\nSet it with %2mode PROVIDER": "当前 API 端点:%1\n使用 %2mode PROVIDER 设置",
"Decrease brightness": "降低亮度",
"Delete": "删除",
"Desktop": "桌面",
@@ -51,7 +50,7 @@
"For storing API keys and other sensitive information": "用于存储 API 密钥和其他敏感信息",
"Game mode": "游戏模式",
"Get the next page of results": "获取下一页结果",
"Go to source ({0})": "转到源 ({0})",
"Go to source (%1)": "转到源 (%1)",
"Hibernate": "休眠",
"Hides brightness OSD on press": "按下时隐藏亮度显示",
"Hides volume OSD on press": "按下时隐藏音量显示",
@@ -66,13 +65,13 @@
"Large images | God tier quality, no NSFW.": "大尺寸图片 | 顶级质量,无 NSFW",
"Large language models": "大语言模型",
"Launch": "启动",
"Local Ollama model | {0}": "本地 Ollama 模型 | {0}",
"Local Ollama model | %1": "本地 Ollama 模型 | %1",
"Lock": "锁定",
"Logout": "注销",
"Markdown test": "Markdown 测试",
"Math result": "数学结果",
"Night Light": "护眼模式",
"No API key set for {0}": "未为 {0} 设置 API 密钥",
"No API key set for %1": "未为 %1 设置 API 密钥",
"No audio source": "无音频源",
"No media": "无媒体",
"No notifications": "无通知",
@@ -88,7 +87,7 @@
"Opens right sidebar on press": "按下时打开右侧边栏",
"Opens session screen on press": "按下时打开会话屏幕",
"Output": "输出",
"Page {0}": "第 {0} 页",
"Page %1": "第 %1 页",
"Reboot": "重启",
"Reboot to firmware settings": "重启到固件设置",
"Reload Hyprland & Quickshell": "重新加载 Hyprland 和 Quickshell",
@@ -111,8 +110,8 @@
"Task Manager": "任务管理器",
"Task description": "任务描述",
"Temperature must be between 0 and 2": "温度必须在 0 到 2 之间",
"Temperature set to {0}": "温度设置为 {0}",
"Temperature: {0}": "温度:{0}",
"Temperature set to %1": "温度设置为 %1",
"Temperature: %1": "温度:%1",
"The hentai one | Great quantity, a lot of NSFW, quality varies wildly": "成人向 | 数量巨大,大量 NSFW,质量参差不齐",
"The popular one | Best quantity, but quality can vary wildly": "最受欢迎 | 数量最多,但质量参差不齐",
"Thinking": "思考中",
@@ -136,18 +135,18 @@
"Unknown Album": "未知专辑",
"Unknown Artist": "未知艺术家",
"Unknown Title": "未知标题",
"Unknown function call: {0}": "未知函数调用:{0}",
"Uptime: {0}": "运行时间:{0}",
"Unknown function call: %1": "未知函数调用:%1",
"Uptime: %1": "运行时间:%1",
"View Markdown source": "查看 Markdown 源码",
"Volume": "音量",
"Volume mixer": "音量混合器",
"Waifus only | Excellent quality, limited quantity": "仅限角色 | 优秀质量,数量有限",
"Waiting for response...": "等待响应...",
"Workspace": "工作区",
"{0} Safe Storage": "{0} 安全存储",
"{0} does not require an API key": "{0} 不需要 API 密钥",
"{0} queries pending": "{0} 个查询等待中",
"{0} | Right-click to configure": "{0} | 右键点击进行配置",
"%1 Safe Storage": "%1 安全存储",
"%1 does not require an API key": "%1 不需要 API 密钥",
"%1 queries pending": "%1 个查询等待中",
"%1 | Right-click to configure": "%1 | 右键点击进行配置",
"Set with /mode PROVIDER": "使用 /mode PROVIDER 设置",
"Invalid API provider. Supported: \n-": "无效的 API 提供商。支持的:\n-",
"Unknown command:": "未知命令:",
@@ -158,11 +157,10 @@
"Invalid model. Supported: \n```": "无效模型。支持的:\n```",
"Interrupts possibility of overview being toggled on release.": "中断松开时切换概览的可能性。",
"Switched to search mode. Continue with the user's request.": "已切换到搜索模式。继续处理用户请求。",
"Message the model... \"{0}\" for commands": "与模型对话... \"{0}\" 查看命令",
"Experimental | Online | Google's model\nCan do a little more but doesn't search quickly": "实验性 | 在线 | Google 模型\n功能更多但搜索速度较慢",
"To set an API key, pass it with the command\n\nTo view the key, pass \"get\" with the command<br/>\n\n### For {0}:\n\n**Link**: {1}\n\n{2}": "要设置 API 密钥,请将其与命令一起传递\n\n要查看密钥,请将 \"get\" 与命令一起传递<br/>\n\n### 对于 {0}\n\n**链接**{1}\n\n{2}",
"Enter tags, or \"{0}\" for commands": "输入标签,或 \"{0}\" 查看命令",
"Online via {0} | {1}'s model": "通过 {0} 在线 | {1} 的模型",
"To set an API key, pass it with the command\n\nTo view the key, pass \"get\" with the command<br/>\n\n### For %1:\n\n**Link**: %2\n\n%3": "要设置 API 密钥,请将其与命令一起传递\n\n要查看密钥,请将 \"get\" 与命令一起传递<br/>\n\n### 对于 %1\n\n**链接**%2\n\n%3",
"Enter tags, or \"%1\" for commands": "输入标签,或 \"%1\" 查看命令",
"Online via %1 | %2's model": "通过 %1 在线 | %2 的模型",
"That didn't work. Tips:\n- Check your tags and NSFW settings\n- If you don't have a tag in mind, type a page number": "没有找到结果。提示:\n- 检查您的标签和 NSFW 设置\n- 如果没有想到标签,请输入页码",
"Online | Google's model\nGives up-to-date information with search.": "在线 | Google 模型\n通过搜索提供最新信息。",
"Settings": "设置",
@@ -302,5 +300,11 @@
"Qt apps": "Qt 应用",
"Report a Bug": "报告问题",
"Issues": "问题追踪",
"Drag or click a region • LMB: Copy • RMB: Edit": "拖动或点击一个区域 • 鼠标左键:复制 • 鼠标右键:编辑"
"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"
}