Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://ld246.com/article/1704285860053/comment/1704528635155#comments

Vanessa3178f31eb81f
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.json
index ff48696571..3283fb0c73 100644
--- a/app/appearance/langs/en_US.json
+++ b/app/appearance/langs/en_US.json
@@ -482,6 +482,7 @@
"useDefaultWidth": "Use Default Column Width",
"type": "Type",
"replaceType": "Replace type",
+ "searchType": "Search type",
"searchBlockType": "Block types (searches in the enabled types below, the filter option in the global search overrides this setting)",
"searchBlockAttr": "Block attributes (search not only in the content, but also in the following enabled attributes)",
"searchIndex": "Index",
diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.json
index d09c112729..174a59c236 100644
--- a/app/appearance/langs/es_ES.json
+++ b/app/appearance/langs/es_ES.json
@@ -482,6 +482,7 @@
"useDefaultWidth": "Usar el ancho de columna por defecto",
"type": "Tipo",
"replaceType": "Reemplazar tipo",
+ "searchType": "Tipo de búsqueda",
"searchBlockType": "Tipos de bloque (busque en los tipos habilitados a continuación, la opción de filtro en la búsqueda global anula esta configuración)",
"searchBlockAttr": "Atributos de bloque (busca no sólo en el contenido, sino también en los siguientes atributos habilitados)",
"searchIndex": "Índice",
diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.json
index 1889b9686f..7b3b29c9c3 100644
--- a/app/appearance/langs/fr_FR.json
+++ b/app/appearance/langs/fr_FR.json
@@ -482,6 +482,7 @@
"useDefaultWidth": "Utiliser la largeur de colonne par défaut",
"type": "Type",
"replaceType": "Remplacer le type",
+ "searchType": "Type de recherche",
"searchBlockType": "Types de bloc (recherche dans les types activés ci-dessous, l'option de filtre dans la recherche globale remplace ce paramètre)",
"searchBlockAttr": "Attributs de bloc (recherche non seulement dans le contenu, mais aussi dans les attributs activés suivants)",
"searchIndex": "Index",
diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.json
index dbc96f162e..ecc3c93722 100644
--- a/app/appearance/langs/zh_CHT.json
+++ b/app/appearance/langs/zh_CHT.json
@@ -482,6 +482,7 @@
"useDefaultWidth": "使用預設列寬",
"type": "類型",
"replaceType": "替換類型",
+ "searchType": "搜尋類型",
"searchBlockType": "塊級類型(在以下啟用的類型中進行搜索,全域搜索中的過濾選項會覆蓋該設置)",
"searchBlockAttr": "塊級屬性(不僅在內容中進行搜索,同時也會在以下啟用的屬性中搜索)",
"searchIndex": "索引",
diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json
index dbced8125d..2c7511f34f 100644
--- a/app/appearance/langs/zh_CN.json
+++ b/app/appearance/langs/zh_CN.json
@@ -482,6 +482,7 @@
"useDefaultWidth": "使用默认列宽",
"type": "类型",
"replaceType": "替换类型",
+ "searchType": "搜索类型",
"searchBlockType": "块级类型(在以下启用的类型中进行搜索,全局搜索中的过滤选项会覆盖该设置)",
"searchBlockAttr": "块级属性(不仅在内容中进行搜索,同时也会在以下启用的属性中搜索)",
"searchIndex": "索引",
diff --git a/app/src/search/menu.ts b/app/src/search/menu.ts
index 0589f3bbe1..d07c0e2a44 100644
--- a/app/src/search/menu.ts
+++ b/app/src/search/menu.ts
@@ -11,7 +11,7 @@ import {updateSearchResult} from "../mobile/menu/search";
export const filterMenu = (config: ISearchOption, cb: () => void) => {
const filterDialog = new Dialog({
- title: window.siyuan.languages.type,
+ title: window.siyuan.languages.replaceType,
content: `<div class="b3-dialog__content">
<label class="fn__flex b3-label">
<svg class="ft__on-surface svg fn__flex-center"><use xlink:href="#iconMath"></use></svg>
@@ -370,7 +370,7 @@ export const moreMenu = async (config: ISearchOption,
/// #if MOBILE
window.siyuan.menus.menu.append(new MenuItem({
iconHTML: "",
- label: window.siyuan.languages.type,
+ label: window.siyuan.languages.searchType,
click() {
filterMenu(config, () => {
updateSearchResult(config, element, true);
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index 0c3eca86ac..7b98a46206 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -295,7 +295,7 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clo
<input id="searchInput" class="b3-text-field b3-text-field--text" placeholder="${window.siyuan.languages.showRecentUpdatedBlocks}">
</div>
<div class="block__icons">
- <span id="searchFilter" aria-label="${window.siyuan.languages.type}" class="block__icon ariaLabel" data-position="9bottom">
+ <span id="searchFilter" aria-label="${window.siyuan.languages.replaceType}" class="block__icon ariaLabel" data-position="9bottom">
<svg><use xlink:href="#iconFilter"></use></svg>
</span>
<span class="fn__space"></span>