From 194564e253ef60086e33b8efcd3656f18e11c151 Mon Sep 17 00:00:00 2001 From: Karl Lee <61072264+KarlLee830@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:03:11 +0800 Subject: [PATCH 1/7] Update Chinese translation --- src/lib/i18n/locales/zh-CN/translation.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/i18n/locales/zh-CN/translation.json b/src/lib/i18n/locales/zh-CN/translation.json index 17801c2c8..92cbc2ace 100644 --- a/src/lib/i18n/locales/zh-CN/translation.json +++ b/src/lib/i18n/locales/zh-CN/translation.json @@ -88,6 +88,7 @@ "Chunk Params": "块参数 (Chunk Params)", "Chunk Size": "块大小 (Chunk Size)", "Citation": "引文", + "Clear memory": "清除记忆", "Click here for help.": "点击这里获取帮助。", "Click here to": "单击", "Click here to select": "点击这里选择", @@ -122,6 +123,7 @@ "Create new secret key": "创建新安全密钥", "Created at": "创建于", "Created At": "创建于", + "Created by": "创建者", "Current Model": "当前模型", "Current Password": "当前密码", "Custom": "自定义", @@ -153,6 +155,7 @@ "Discover a prompt": "发现更多提示词", "Discover, download, and explore custom prompts": "发现、下载并探索更多自定义提示词", "Discover, download, and explore model presets": "发现、下载并探索更多模型预设", + "Dismissible": "可关闭", "Display the username instead of You in the Chat": "在对话中显示用户名而不是“你”", "Document": "文档", "Document Settings": "文档设置", @@ -272,6 +275,7 @@ "LTR": "从左至右", "Made by OpenWebUI Community": "由 OpenWebUI 社区制作", "Make sure to enclose them with": "确保将它们包含在内", + "Manage": "管理", "Manage Models": "管理模型", "Manage Ollama Models": "管理 Ollama 模型", "Manage Pipelines": "管理 Pipeline", @@ -385,6 +389,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "从右至左", + "Running": "运行中", "Save": "保存", "Save & Create": "保存并创建", "Save & Update": "保存并更新", @@ -406,6 +411,7 @@ "See what's new": "查阅最新更新内容", "Seed": "种子 (Seed)", "Select a base model": "选择一个基础模型", + "Select a engine": "选择一个搜索引擎", "Select a mode": "选择一个模式", "Select a model": "选择一个模型", "Select a pipeline": "选择一个管道", @@ -531,6 +537,7 @@ "Write a summary in 50 words that summarizes [topic or keyword].": "用 50 个字写一个总结 [主题或关键词]。", "Yesterday": "昨天", "You": "你", + "You can personalize your interactions with LLMs by adding memories through the 'Manage' button below, making them more helpful and tailored to you.": "通过点击下方的“管理”按钮,你可以添加记忆,以个性化大语言模型的互动,使其更有用,更符合你的需求。", "You cannot clone a base model": "你不能复制基础模型", "You have no archived conversations.": "你没有已归档的对话。", "You have shared this chat": "你之前已经分享过此", From e7fb86190ab25d92d28a550460e0ede5966c85aa Mon Sep 17 00:00:00 2001 From: Karl Lee <61072264+KarlLee830@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:12:45 +0800 Subject: [PATCH 2/7] added missing i18n keys --- src/lib/components/layout/Overlay/AccountPending.svelte | 7 +++---- src/lib/i18n/locales/zh-CN/translation.json | 7 ++++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/lib/components/layout/Overlay/AccountPending.svelte b/src/lib/components/layout/Overlay/AccountPending.svelte index 79ab23493..21cb3b5ab 100644 --- a/src/lib/components/layout/Overlay/AccountPending.svelte +++ b/src/lib/components/layout/Overlay/AccountPending.svelte @@ -21,17 +21,16 @@
- Account Activation Pending
Contact Admin for WebUI Access + {$i18n.t('Account Activation Pending')}
{$i18n.t('Contact Admin for WebUI Access')}
- Your account status is currently pending activation.
To access the WebUI, please reach - out to the administrator. Admins can manage user statuses from the Admin Panel. + {$i18n.t('Your account status is currently pending activation.')}
{$i18n.t('To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel.')}
{#if adminDetails}
-
Admin: {adminDetails.name} ({adminDetails.email})
+
{$i18n.t('Admin')}: {adminDetails.name} ({adminDetails.email})
{/if} diff --git a/src/lib/i18n/locales/zh-CN/translation.json b/src/lib/i18n/locales/zh-CN/translation.json index 92cbc2ace..d8fe2eb05 100644 --- a/src/lib/i18n/locales/zh-CN/translation.json +++ b/src/lib/i18n/locales/zh-CN/translation.json @@ -544,5 +544,10 @@ "You're a helpful assistant.": "你是一个有帮助的助手。", "You're now logged in.": "已登录。", "Youtube": "YouTube", - "Youtube Loader Settings": "YouTube 爬取设置" + "Youtube Loader Settings": "YouTube 爬取设置", + "Account Activation Pending": "账号待激活", + "Contact Admin for WebUI Access": "请联系管理员以获取访问权限", + "Your account status is currently pending activation.": "您的账号当前状态为待激活。", + "To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel.": "请联系管理员以访问。管理员可以在后台管理面板中管理用户状态。", + "Admin": "管理员联系方式" } From 34aea03c02715c75f21943af03140887e8fb0b7b Mon Sep 17 00:00:00 2001 From: Karl Lee <61072264+KarlLee830@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:29:45 +0800 Subject: [PATCH 3/7] Update Chinese translation --- src/lib/i18n/locales/zh-CN/translation.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/i18n/locales/zh-CN/translation.json b/src/lib/i18n/locales/zh-CN/translation.json index d8fe2eb05..627e4609b 100644 --- a/src/lib/i18n/locales/zh-CN/translation.json +++ b/src/lib/i18n/locales/zh-CN/translation.json @@ -80,7 +80,7 @@ "Chat History": "对话历史记录", "Chat History is off for this browser.": "此浏览器已关闭对话历史记录功能。", "Chats": "对话", - "Check Again": "再次检查", + "Check Again": "刷新重试", "Check for updates": "检查更新", "Checking for updates...": "正在检查更新...", "Choose a model before saving...": "保存前选择一个模型...", From f4a122a4bb73d16e9e58cf3bec719cf15b812608 Mon Sep 17 00:00:00 2001 From: Karl Lee <61072264+KarlLee830@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:47:40 +0800 Subject: [PATCH 4/7] Added missing i18n Added missing i18n keys and update Chinese translation. --- src/lib/components/chat/Settings/Models.svelte | 4 ++-- src/lib/i18n/locales/zh-CN/translation.json | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/lib/components/chat/Settings/Models.svelte b/src/lib/components/chat/Settings/Models.svelte index 193402547..ee825dfa7 100644 --- a/src/lib/components/chat/Settings/Models.svelte +++ b/src/lib/components/chat/Settings/Models.svelte @@ -541,7 +541,7 @@ ]); } else { ollamaEnabled = false; - toast.error('Ollama API is disabled'); + toast.error($i18n.t('Ollama API is disabled')); } }); @@ -1063,7 +1063,7 @@
{/if} {:else if ollamaEnabled === false} -
Ollama API is disabled
+
{$i18n.t('Ollama API is disabled')}
{:else}
diff --git a/src/lib/i18n/locales/zh-CN/translation.json b/src/lib/i18n/locales/zh-CN/translation.json index 627e4609b..04584ed74 100644 --- a/src/lib/i18n/locales/zh-CN/translation.json +++ b/src/lib/i18n/locales/zh-CN/translation.json @@ -123,7 +123,7 @@ "Create new secret key": "创建新安全密钥", "Created at": "创建于", "Created At": "创建于", - "Created by": "创建者", + "Created by": "作者", "Current Model": "当前模型", "Current Password": "当前密码", "Custom": "自定义", @@ -348,7 +348,7 @@ "Password": "密码", "PDF document (.pdf)": "PDF 文档 (.pdf)", "PDF Extract Images (OCR)": "PDF 图像处理 (使用 OCR)", - "pending": "待定", + "pending": "待激活", "Permission denied when accessing microphone: {{error}}": "申请麦克风权限被拒绝:{{error}}", "Personalization": "个性化", "Pipelines": "Pipeline", @@ -443,7 +443,7 @@ "Share to OpenWebUI Community": "分享到 OpenWebUI 社区", "short-summary": "简短总结", "Show": "显示", - "Show Admin Details in Account Pending Overlay": "在用户待定界面中显示管理员邮箱等详细信息", + "Show Admin Details in Account Pending Overlay": "在用户待激活界面中显示管理员邮箱等详细信息", "Show shortcuts": "显示快捷方式", "Showcased creativity": "很有创意", "sidebar": "侧边栏", @@ -545,6 +545,7 @@ "You're now logged in.": "已登录。", "Youtube": "YouTube", "Youtube Loader Settings": "YouTube 爬取设置", + "Ollama API is disabled": "Ollama API 已禁用", "Account Activation Pending": "账号待激活", "Contact Admin for WebUI Access": "请联系管理员以获取访问权限", "Your account status is currently pending activation.": "您的账号当前状态为待激活。", From 9bec2cea12750589df3b165720d687aa59d36ed5 Mon Sep 17 00:00:00 2001 From: Karl Lee <61072264+KarlLee830@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:58:25 +0800 Subject: [PATCH 5/7] Update translation --- .../chat/Settings/Personalization/AddMemoryModal.svelte | 2 +- .../chat/Settings/Personalization/ManageModal.svelte | 2 +- src/lib/i18n/locales/zh-CN/translation.json | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/components/chat/Settings/Personalization/AddMemoryModal.svelte b/src/lib/components/chat/Settings/Personalization/AddMemoryModal.svelte index 9d67467fe..445b7f667 100644 --- a/src/lib/components/chat/Settings/Personalization/AddMemoryModal.svelte +++ b/src/lib/components/chat/Settings/Personalization/AddMemoryModal.svelte @@ -75,7 +75,7 @@ />
- ⓘ Refer to yourself as "User" (e.g., "User is learning Spanish") + ⓘ {$i18n.t('Refer to yourself as "User" (e.g., "User is learning Spanish")')}
diff --git a/src/lib/components/chat/Settings/Personalization/ManageModal.svelte b/src/lib/components/chat/Settings/Personalization/ManageModal.svelte index dd7f92d92..df5fb3916 100644 --- a/src/lib/components/chat/Settings/Personalization/ManageModal.svelte +++ b/src/lib/components/chat/Settings/Personalization/ManageModal.svelte @@ -136,7 +136,7 @@ class=" px-3.5 py-1.5 font-medium hover:bg-black/5 dark:hover:bg-white/5 outline outline-1 outline-gray-300 dark:outline-gray-800 rounded-3xl" on:click={() => { showAddMemoryModal = true; - }}>{$i18n.t('Add memory')}{$i18n.t('Add Memory')}
-
Local Models
+
{$i18n.t('Local Models')}
{$i18n.t('Memory')} diff --git a/src/lib/i18n/locales/zh-CN/translation.json b/src/lib/i18n/locales/zh-CN/translation.json index 657b2ad55..890736f0e 100644 --- a/src/lib/i18n/locales/zh-CN/translation.json +++ b/src/lib/i18n/locales/zh-CN/translation.json @@ -546,7 +546,10 @@ "Youtube": "YouTube", "Youtube Loader Settings": "YouTube 爬取设置", "Ollama API is disabled": "Ollama API 已禁用", + "This is an experimental feature, it may not function as expected and is subject to change at any time.": "这是一个实验性功能,可能无法按预期运行,并随时可能更改。", "Refer to yourself as \"User\" (e.g., \"User is learning Spanish\")": "使用\"User\" (用户) 来指代自己(例如:“User 正在学习西班牙语”)", + "Local Models": "本地模型", + "External Models": "外部模型", "Account Activation Pending": "账号待激活", "Contact Admin for WebUI Access": "请联系管理员以获取访问权限", "Your account status is currently pending activation.": "您的账号当前状态为待激活。",