mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-28 16:11:43 -05:00
fix: label knowledge bases as Knowledge Base instead of Collection (#34432)
Knowledge bases are called Collection or Collections in the chat knowledge picker, the model editor knowledge selector, the knowledge base chips and their detail view, and the search box inside a knowledge base, while the rest of the app says knowledge. Collection is also the vector database term, so the two get mixed up. Those places now say Knowledge, Knowledge Base or Search Files, reusing labels that are already translated, and the tooltip on a file inside a knowledge base now says File. Relates to #34424
This commit is contained in:
1 parent
32b4afaece
commit
3dab13494c
8 files changed
+17
-15
No files matched your search
@@ -274,7 +274,7 @@
|
||||
{#if item?.type === 'folder'}
|
||||
{$i18n.t('Folders')}
|
||||
{:else if item?.type === 'collection'}
|
||||
{$i18n.t('Collections')}
|
||||
{$i18n.t('Knowledge')}
|
||||
{:else if item?.type === 'file'}
|
||||
{$i18n.t('Files')}
|
||||
{:else if item?.type === 'filesystem'}
|
||||
@@ -307,7 +307,7 @@
|
||||
: item?.type === 'file'
|
||||
? `${item?.collection?.name} > ${$i18n.t('File')}`
|
||||
: item?.type === 'collection'
|
||||
? $i18n.t('Collection')
|
||||
? $i18n.t('Knowledge Base')
|
||||
: item?.type === 'youtube'
|
||||
? $i18n.t('YouTube')
|
||||
: item?.type === 'web'
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
{#if item?.type === 'folder'}
|
||||
{$i18n.t('Folders')}
|
||||
{:else if item?.type === 'collection'}
|
||||
{$i18n.t('Collections')}
|
||||
{$i18n.t('Knowledge')}
|
||||
{:else if item?.type === 'file'}
|
||||
{$i18n.t('Files')}
|
||||
{/if}
|
||||
@@ -211,7 +211,7 @@
|
||||
: item?.type === 'file'
|
||||
? `${item?.collection?.name} > ${$i18n.t('File')}`
|
||||
: item?.type === 'collection'
|
||||
? $i18n.t('Collection')
|
||||
? $i18n.t('Knowledge Base')
|
||||
: ''}
|
||||
placement="top"
|
||||
>
|
||||
|
||||
@@ -225,7 +225,7 @@
|
||||
data-selected={idx === selectedIdx}
|
||||
>
|
||||
<div class="w-full text-left text-black dark:text-gray-100 flex items-center gap-1">
|
||||
<Tooltip content={$i18n.t('Collection')} placement="top">
|
||||
<Tooltip content={$i18n.t('Knowledge Base')} placement="top">
|
||||
<Database className="size-3.5" />
|
||||
</Tooltip>
|
||||
|
||||
@@ -288,7 +288,7 @@
|
||||
}}
|
||||
>
|
||||
<div class=" flex items-center gap-1.5">
|
||||
<Tooltip content={$i18n.t('Collection')} placement="top">
|
||||
<Tooltip content={$i18n.t('File')} placement="top">
|
||||
<DocumentPage className="size-3.5" />
|
||||
</Tooltip>
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
{#if !loading}
|
||||
<Tooltip
|
||||
content={type === 'collection'
|
||||
? $i18n.t('Collection')
|
||||
? $i18n.t('Knowledge Base')
|
||||
: type === 'note'
|
||||
? $i18n.t('Note')
|
||||
: type === 'chat'
|
||||
@@ -158,7 +158,7 @@
|
||||
{:else if type === 'doc'}
|
||||
{$i18n.t('Document')}
|
||||
{:else if type === 'collection'}
|
||||
{$i18n.t('Collection')}
|
||||
{$i18n.t('Knowledge Base')}
|
||||
{:else}
|
||||
<span class=" capitalize line-clamp-1">{type}</span>
|
||||
{/if}
|
||||
@@ -182,7 +182,11 @@
|
||||
</div>
|
||||
{:else}
|
||||
<div class="max-w-[35%] shrink-0 truncate text-[0.6875rem] capitalize text-gray-500">
|
||||
{type}
|
||||
{#if type === 'collection'}
|
||||
{$i18n.t('Knowledge')}
|
||||
{:else}
|
||||
{type}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -314,7 +314,7 @@
|
||||
<div class=" flex flex-wrap text-xs gap-1 text-gray-500">
|
||||
{#if item?.type === 'collection'}
|
||||
{#if item?.type}
|
||||
<div class="capitalize shrink-0">{item.type}</div>
|
||||
<div class="capitalize shrink-0">{$i18n.t('Knowledge Base')}</div>
|
||||
•
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -147,8 +147,8 @@
|
||||
<div class="flex h-full min-h-0 w-full flex-col">
|
||||
<div class="flex shrink-0 items-center p-1.5">
|
||||
<Search className="mx-1 size-3.5 shrink-0 text-gray-400" /><input
|
||||
aria-label={$i18n.t('Search Collection')}
|
||||
placeholder={$i18n.t('Search Collection')}
|
||||
aria-label={$i18n.t('Search Files')}
|
||||
placeholder={$i18n.t('Search Files')}
|
||||
bind:value={inputQuery}
|
||||
class="h-7 min-w-0 flex-1 bg-transparent px-1 text-xs outline-none"
|
||||
on:input={() => {
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
{item.type === 'note'
|
||||
? $i18n.t('Notes')
|
||||
: item.type === 'collection'
|
||||
? $i18n.t('Collections')
|
||||
? $i18n.t('Knowledge')
|
||||
: $i18n.t('Files')}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -614,7 +614,6 @@
|
||||
"Collapse terminal": "",
|
||||
"Collection": "",
|
||||
"Collection Field": "",
|
||||
"Collections": "",
|
||||
"Color": "",
|
||||
"ComfyUI": "",
|
||||
"ComfyUI Base URL is required.": "",
|
||||
@@ -2675,7 +2674,6 @@
|
||||
"Search built-in tools": "Search built-in tools",
|
||||
"Search channels": "",
|
||||
"Search Chats": "",
|
||||
"Search Collection": "",
|
||||
"Search file content": "",
|
||||
"Search Files": "",
|
||||
"Search files and contents": "",
|
||||
|
||||
Reference in new issue
Block a user