Merge pull request #2873 from KarlLee830/translate

i18n: Added missing i18n keys for the pending overlay and other pages.
This commit is contained in:
Timothy Jaeryang Baek 2024-06-06 04:10:47 -07:00 committed by GitHub
commit 72e1615fe1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 32 additions and 16 deletions

View File

@ -333,7 +333,7 @@
</div>
<div class="flex w-full gap-2 pr-2">
<div class="flex-1">
<div class=" text-xs mb-1">Local Models</div>
<div class=" text-xs mb-1">{$i18n.t('Local Models')}</div>
<select
class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-none"
bind:value={titleAutoGenerateModel}
@ -349,7 +349,7 @@
</div>
<div class="flex-1">
<div class=" text-xs mb-1">External Models</div>
<div class=" text-xs mb-1">{$i18n.t('External Models')}</div>
<select
class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-none"
bind:value={titleAutoGenerateModelExternal}

View File

@ -541,7 +541,7 @@
]);
} else {
ollamaEnabled = false;
toast.error('Ollama API is disabled');
toast.error($i18n.t('Ollama API is disabled'));
}
});
</script>
@ -1063,7 +1063,7 @@
</div>
{/if}
{:else if ollamaEnabled === false}
<div>Ollama API is disabled</div>
<div>{$i18n.t('Ollama API is disabled')}</div>
{:else}
<div class="flex h-full justify-center">
<div class="my-auto">

View File

@ -35,7 +35,7 @@
<div>
<div class="flex items-center justify-between mb-1">
<Tooltip
content="This is an experimental feature, it may not function as expected and is subject to change at any time."
content="{$i18n.t('This is an experimental feature, it may not function as expected and is subject to change at any time.')}"
>
<div class="text-sm font-medium">
{$i18n.t('Memory')}

View File

@ -75,7 +75,7 @@
/>
<div class="text-xs text-gray-500">
ⓘ Refer to yourself as "User" (e.g., "User is learning Spanish")
{$i18n.t('Refer to yourself as "User" (e.g., "User is learning Spanish")')}
</div>
</div>

View File

@ -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')}</button
}}>{$i18n.t('Add Memory')}</button
>
<button
class=" px-3.5 py-1.5 font-medium text-red-500 hover:bg-black/5 dark:hover:bg-white/5 outline outline-1 outline-red-300 dark:outline-red-800 rounded-3xl"

View File

@ -21,17 +21,16 @@
<div class="m-auto pb-10 flex flex-col justify-center">
<div class="max-w-md">
<div class="text-center dark:text-white text-2xl font-medium z-50">
Account Activation Pending<br /> Contact Admin for WebUI Access
{$i18n.t('Account Activation Pending')}<br /> {$i18n.t('Contact Admin for WebUI Access')}
</div>
<div class=" mt-4 text-center text-sm dark:text-gray-200 w-full">
Your account status is currently pending activation.<br /> 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.')}<br /> {$i18n.t('To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel.')}
</div>
{#if adminDetails}
<div class="mt-4 text-sm font-medium text-center">
<div>Admin: {adminDetails.name} ({adminDetails.email})</div>
<div>{$i18n.t('Admin')}: {adminDetails.name} ({adminDetails.email})</div>
</div>
{/if}

View File

@ -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...": "保存前选择一个模型...",
@ -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": "文档设置",
@ -181,7 +184,7 @@
"Enable Web Search": "启用网络搜索",
"Ensure your CSV file includes 4 columns in this order: Name, Email, Password, Role.": "确保您的 CSV 文件按以下顺序包含 4 列: 姓名、电子邮箱、密码、角色。",
"Enter {{role}} message here": "在此处输入 {{role}} 信息",
"Enter a detail about yourself for your LLMs to recall": "输入 LLM 可以记住的信息",
"Enter a detail about yourself for your LLMs to recall": "输入一个关于你自己的详细信息,方便你的大语言模型记住这些内容",
"Enter Brave Search API Key": "输入 Brave Search API 密钥",
"Enter Chunk Overlap": "输入块重叠 (Chunk Overlap)",
"Enter Chunk Size": "输入块大小 (Chunk Size)",
@ -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",
@ -344,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",
@ -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": "选择一个管道",
@ -437,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": "侧边栏",
@ -531,11 +537,22 @@
"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": "你之前已经分享过此",
"You're a helpful assistant.": "你是一个有帮助的助手。",
"You're now logged in.": "已登录。",
"Youtube": "YouTube",
"Youtube Loader Settings": "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.": "您的账号当前状态为待激活。",
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel.": "请联系管理员以访问。管理员可以在后台管理面板中管理用户状态。",
"Admin": "管理员联系方式"
}