Skip to content

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

:art: Improve duplicate shortcut labeling https://github.com/siyuan-note/siyuan/issues/18698

Daniel856ebf7ef2d7
diff --git a/app/appearance/langs/ar.json b/app/appearance/langs/ar.json
index 5757e28f34..772bf56c16 100644
--- a/app/appearance/langs/ar.json
+++ b/app/appearance/langs/ar.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "إنشاء نسخة",
"runeCountWithEmbed": "عدد الأحرف مع الكتل المضمنة",
"wordCountWithEmbed": "عدد الكلمات مع الكتل المضمنة",
"embedStatIncomplete": "الإحصاءات غير مكتملة لتعذر احتساب بعض الكتل المضمنة",
@@ -1609,7 +1610,7 @@
"sub": "نص منخفض",
"enter": "تركيز",
"enterBack": "العودة للمستوى الأعلى",
- "duplicate": "إنشاء نسخة",
+ "duplicate": "إنشاء نسخة / إنشاء نسخة مرآة",
"turnInto": "تحويل إلى",
"split": "تقسيم",
"underline": "خط سفلي",
diff --git a/app/appearance/langs/de.json b/app/appearance/langs/de.json
index 4f33a125a1..0a10ac042d 100644
--- a/app/appearance/langs/de.json
+++ b/app/appearance/langs/de.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "Kopie erstellen",
"runeCountWithEmbed": "Zeichen einschließlich eingebetteter Blöcke",
"wordCountWithEmbed": "Wörter einschließlich eingebetteter Blöcke",
"embedStatIncomplete": "Die Statistik ist unvollständig, da einige eingebettete Blöcke nicht gezählt werden konnten",
@@ -1609,7 +1610,7 @@
"sub": "Tiefgestellt",
"enter": "Vergrößern",
"enterBack": "Verkleinern",
- "duplicate": "Kopie erstellen",
+ "duplicate": "Kopie erstellen / Spiegelkopie erstellen",
"turnInto": "Umwandeln in",
"split": "Teilen",
"underline": "Unterstreichen",
diff --git a/app/appearance/langs/en.json b/app/appearance/langs/en.json
index 0da08e1f7d..2645190af9 100644
--- a/app/appearance/langs/en.json
+++ b/app/appearance/langs/en.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "Create copy",
"runeCountWithEmbed": "Characters with embed blocks",
"wordCountWithEmbed": "Words with embed blocks",
"embedStatIncomplete": "The statistics are incomplete because some embed blocks could not be counted",
@@ -1609,7 +1610,7 @@
"sub": "Subscript",
"enter": "Zoom in",
"enterBack": "Zoom out",
- "duplicate": "Create copy",
+ "duplicate": "Create copy / Create mirror copy",
"turnInto": "Turn into",
"split": "Split",
"underline": "Underline",
diff --git a/app/appearance/langs/es.json b/app/appearance/langs/es.json
index eae05efba4..4961257c5d 100644
--- a/app/appearance/langs/es.json
+++ b/app/appearance/langs/es.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "Crear copia",
"runeCountWithEmbed": "Caracteres con bloques incrustados",
"wordCountWithEmbed": "Palabras con bloques incrustados",
"embedStatIncomplete": "Las estadísticas están incompletas porque no se pudieron contar algunos bloques incrustados",
@@ -1609,7 +1610,7 @@
"sub": "Subíndice",
"enter": "Acercar",
"enterBack": "Alejar",
- "duplicate": "Crear copia",
+ "duplicate": "Crear copia / Crear copia espejo",
"turnInto": "Convertir en",
"split": "Dividir",
"underline": "Subrayar",
diff --git a/app/appearance/langs/fr.json b/app/appearance/langs/fr.json
index 3893d152b9..4e6e506d61 100644
--- a/app/appearance/langs/fr.json
+++ b/app/appearance/langs/fr.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "Créer une copie",
"runeCountWithEmbed": "Caractères avec blocs intégrés",
"wordCountWithEmbed": "Mots avec blocs intégrés",
"embedStatIncomplete": "Les statistiques sont incomplètes, car certains blocs intégrés n’ont pas pu être comptés",
@@ -1609,7 +1610,7 @@
"sub": "Subscript",
"enter": "Zoomer",
"enterBack": "Zoom arrière",
- "duplicate": "Créer une copie",
+ "duplicate": "Créer une copie / Créer une copie miroir",
"turnInto": "Convertir en",
"split": "Divisé",
"underline": "Souligner",
diff --git a/app/appearance/langs/he.json b/app/appearance/langs/he.json
index cf0106309c..7736207802 100644
--- a/app/appearance/langs/he.json
+++ b/app/appearance/langs/he.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "צור עותק",
"runeCountWithEmbed": "תווים כולל בלוקים מוטמעים",
"wordCountWithEmbed": "מילים כולל בלוקים מוטמעים",
"embedStatIncomplete": "הסטטיסטיקה חלקית מכיוון שלא ניתן היה לספור חלק מהבלוקים המוטמעים",
@@ -1609,7 +1610,7 @@
"sub": "תת מצבה",
"enter": "התמקד",
"enterBack": "התמקד אחורה",
- "duplicate": "צור עותק",
+ "duplicate": "צור עותק / צור עותק מראה",
"turnInto": "הפוך ל",
"split": "חלק",
"underline": "קו תחתון",
diff --git a/app/appearance/langs/hi.json b/app/appearance/langs/hi.json
index 4e4663eeb8..90af84f0d9 100644
--- a/app/appearance/langs/hi.json
+++ b/app/appearance/langs/hi.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "प्रतिलिपि बनाएं",
"runeCountWithEmbed": "एम्बेड ब्लॉक सहित वर्ण",
"wordCountWithEmbed": "एम्बेड ब्लॉक सहित शब्द",
"embedStatIncomplete": "कुछ एम्बेड ब्लॉक की गणना नहीं हो सकी, इसलिए आँकड़े अपूर्ण हैं",
@@ -1609,7 +1610,7 @@
"sub": "निचला अंक",
"enter": "फ़ोकस करें",
"enterBack": "ऊपरी स्तर पर फ़ोकस करें",
- "duplicate": "प्रतिलिपि बनाएं",
+ "duplicate": "प्रतिलिपि बनाएं / मिरर प्रतिलिपि बनाएं",
"turnInto": "इसमें बदलें",
"split": "विभाजित करें",
"underline": "रेखांकित",
diff --git a/app/appearance/langs/id.json b/app/appearance/langs/id.json
index 79c94a6736..cdd6820dfb 100644
--- a/app/appearance/langs/id.json
+++ b/app/appearance/langs/id.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "Buat salinan",
"runeCountWithEmbed": "Karakter termasuk blok sematan",
"wordCountWithEmbed": "Kata termasuk blok sematan",
"embedStatIncomplete": "Statistik tidak lengkap karena beberapa blok sematan tidak dapat dihitung",
@@ -1609,7 +1610,7 @@
"sub": "Subskrip",
"enter": "Fokus",
"enterBack": "Fokus ke level atas",
- "duplicate": "Buat salinan",
+ "duplicate": "Buat salinan / Buat salinan cermin",
"turnInto": "Ubah menjadi",
"split": "Pisahkan",
"underline": "Garis bawah",
diff --git a/app/appearance/langs/it.json b/app/appearance/langs/it.json
index 8f420a714d..0b6cf2e76c 100644
--- a/app/appearance/langs/it.json
+++ b/app/appearance/langs/it.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "Crea copia",
"runeCountWithEmbed": "Caratteri con blocchi incorporati",
"wordCountWithEmbed": "Parole con blocchi incorporati",
"embedStatIncomplete": "Le statistiche sono incomplete perché non è stato possibile conteggiare alcuni blocchi incorporati",
@@ -1609,7 +1610,7 @@
"sub": "Pedice",
"enter": "Ingrandisci",
"enterBack": "Riduci",
- "duplicate": "Crea copia",
+ "duplicate": "Crea copia / Crea copia speculare",
"turnInto": "Trasforma in",
"split": "Dividi",
"underline": "Sottolinea",
diff --git a/app/appearance/langs/ja.json b/app/appearance/langs/ja.json
index c3704a9d62..9e5bd600d3 100644
--- a/app/appearance/langs/ja.json
+++ b/app/appearance/langs/ja.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "複製を作成",
"runeCountWithEmbed": "埋め込みブロックを含む文字数",
"wordCountWithEmbed": "埋め込みブロックを含む単語数",
"embedStatIncomplete": "一部の埋め込みブロックを集計できないため、統計は不完全です",
@@ -1609,7 +1610,7 @@
"sub": "下付き文字",
"enter": "ズームイン",
"enterBack": "ズームアウト",
- "duplicate": "複製を作成",
+ "duplicate": "複製を作成 / ミラーのコピーを作成",
"turnInto": "変換",
"split": "分割",
"underline": "下線",
diff --git a/app/appearance/langs/ko.json b/app/appearance/langs/ko.json
index fe3802b470..7d7f7063e4 100644
--- a/app/appearance/langs/ko.json
+++ b/app/appearance/langs/ko.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "사본 만들기",
"runeCountWithEmbed": "임베드 블록 포함 글자 수",
"wordCountWithEmbed": "임베드 블록 포함 단어 수",
"embedStatIncomplete": "일부 임베드 블록을 계산할 수 없어 통계가 완전하지 않습니다",
@@ -1609,7 +1610,7 @@
"sub": "아래첨자",
"enter": "확대",
"enterBack": "축소",
- "duplicate": "사본 만들기",
+ "duplicate": "사본 만들기 / 미러 사본 만들기",
"turnInto": "변환",
"split": "분할",
"underline": "밑줄",
diff --git a/app/appearance/langs/nl.json b/app/appearance/langs/nl.json
index 8afa839205..0b2441b8ce 100644
--- a/app/appearance/langs/nl.json
+++ b/app/appearance/langs/nl.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "Kopie maken",
"runeCountWithEmbed": "Tekens inclusief ingesloten blokken",
"wordCountWithEmbed": "Woorden inclusief ingesloten blokken",
"embedStatIncomplete": "De statistieken zijn onvolledig omdat sommige ingesloten blokken niet konden worden geteld",
@@ -1609,7 +1610,7 @@
"sub": "Onderschrift",
"enter": "Inzoomen",
"enterBack": "Uitzoomen",
- "duplicate": "Kopie maken",
+ "duplicate": "Kopie maken / Spiegelkopie maken",
"turnInto": "Omzetten naar",
"split": "Splitsen",
"underline": "Onderstreping",
diff --git a/app/appearance/langs/pl.json b/app/appearance/langs/pl.json
index 62fcf693f2..98bb2d6353 100644
--- a/app/appearance/langs/pl.json
+++ b/app/appearance/langs/pl.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "Utwórz kopię",
"runeCountWithEmbed": "Znaki z osadzonymi blokami",
"wordCountWithEmbed": "Słowa z osadzonymi blokami",
"embedStatIncomplete": "Statystyki są niepełne, ponieważ nie udało się policzyć niektórych osadzonych bloków",
@@ -1609,7 +1610,7 @@
"sub": "Indeks dolny",
"enter": "Powiększ",
"enterBack": "Pomniejsz",
- "duplicate": "Utwórz kopię",
+ "duplicate": "Utwórz kopię / Utwórz kopię lustrzaną",
"turnInto": "Zmień w",
"split": "Podziel",
"underline": "Podkreślenie",
diff --git a/app/appearance/langs/pt-BR.json b/app/appearance/langs/pt-BR.json
index 4f55d766da..9084234c9f 100644
--- a/app/appearance/langs/pt-BR.json
+++ b/app/appearance/langs/pt-BR.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "Criar cópia",
"runeCountWithEmbed": "Caracteres com blocos incorporados",
"wordCountWithEmbed": "Palavras com blocos incorporados",
"embedStatIncomplete": "As estatísticas estão incompletas porque alguns blocos incorporados não puderam ser contados",
@@ -1609,7 +1610,7 @@
"sub": "Subscrito",
"enter": "Ampliar",
"enterBack": "Reduzir",
- "duplicate": "Criar cópia",
+ "duplicate": "Criar cópia / Criar cópia espelhada",
"turnInto": "Transformar em",
"split": "Dividir",
"underline": "Sublinhado",
diff --git a/app/appearance/langs/ru.json b/app/appearance/langs/ru.json
index 88968657d4..e70ea03ad2 100644
--- a/app/appearance/langs/ru.json
+++ b/app/appearance/langs/ru.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "Создать дубликат",
"runeCountWithEmbed": "Символы с учётом встроенных блоков",
"wordCountWithEmbed": "Слова с учётом встроенных блоков",
"embedStatIncomplete": "Статистика неполна, поскольку некоторые встроенные блоки не удалось учесть",
@@ -1609,7 +1610,7 @@
"sub": "Подстрочный",
"enter": "Увеличить",
"enterBack": "Уменьшить",
- "duplicate": "Создать дубликат",
+ "duplicate": "Создать дубликат / Создать зеркальную копию",
"turnInto": "Преобразовать в",
"split": "Разделить",
"underline": "Подчеркнуть",
diff --git a/app/appearance/langs/sk.json b/app/appearance/langs/sk.json
index 0c6ec95c44..99c853ea19 100644
--- a/app/appearance/langs/sk.json
+++ b/app/appearance/langs/sk.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "Vytvoriť kópiu",
"runeCountWithEmbed": "Znaky vrátane vložených blokov",
"wordCountWithEmbed": "Slová vrátane vložených blokov",
"embedStatIncomplete": "Štatistika nie je úplná, pretože niektoré vložené bloky nebolo možné spočítať",
@@ -1609,7 +1610,7 @@
"sub": "Dolný index",
"enter": "Priblížiť (Zoom in)",
"enterBack": "Oddialiť (Zoom out)",
- "duplicate": "Vytvoriť kópiu",
+ "duplicate": "Vytvoriť kópiu / Vytvoriť zrkadlovú kópiu",
"turnInto": "Zmeniť na",
"split": "Rozdeliť",
"underline": "Podčiarknuté",
diff --git a/app/appearance/langs/th.json b/app/appearance/langs/th.json
index 11d59aa7e9..d4057c6f30 100644
--- a/app/appearance/langs/th.json
+++ b/app/appearance/langs/th.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "สร้างสำเนา",
"runeCountWithEmbed": "อักขระรวมบล็อกฝัง",
"wordCountWithEmbed": "คำรวมบล็อกฝัง",
"embedStatIncomplete": "สถิติไม่สมบูรณ์เนื่องจากไม่สามารถนับบล็อกฝังบางรายการได้",
@@ -1609,7 +1610,7 @@
"sub": "ตัวห้อย",
"enter": "ซูมเข้า",
"enterBack": "ซูมออก",
- "duplicate": "สร้างสำเนา",
+ "duplicate": "สร้างสำเนา / สร้างสำเนามิเรอร์",
"turnInto": "เปลี่ยนเป็น",
"split": "แบ่ง",
"underline": "ขีดเส้นใต้",
diff --git a/app/appearance/langs/tr.json b/app/appearance/langs/tr.json
index 33a7a53ef2..8edffabb2d 100644
--- a/app/appearance/langs/tr.json
+++ b/app/appearance/langs/tr.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "Kopya oluştur",
"runeCountWithEmbed": "Gömülü bloklarla karakterler",
"wordCountWithEmbed": "Gömülü bloklarla kelimeler",
"embedStatIncomplete": "Bazı gömülü bloklar sayılamadığı için istatistikler eksik",
@@ -1609,7 +1610,7 @@
"sub": "Alt simge",
"enter": "Yakınlaştır",
"enterBack": "Uzaklaştır",
- "duplicate": "Kopya oluştur",
+ "duplicate": "Kopya oluştur / Ayna kopyası oluştur",
"turnInto": "Dönüştür",
"split": "Böl",
"underline": "Altı çizili",
diff --git a/app/appearance/langs/uk.json b/app/appearance/langs/uk.json
index 616749a08c..69a33a1217 100644
--- a/app/appearance/langs/uk.json
+++ b/app/appearance/langs/uk.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "Створити дублікат",
"runeCountWithEmbed": "Символи з урахуванням вбудованих блоків",
"wordCountWithEmbed": "Слова з урахуванням вбудованих блоків",
"embedStatIncomplete": "Статистика неповна, оскільки деякі вбудовані блоки не вдалося врахувати",
@@ -1609,7 +1610,7 @@
"sub": "Нижній індекс",
"enter": "Збільшити",
"enterBack": "Зменшити",
- "duplicate": "Створити дублікат",
+ "duplicate": "Створити дублікат / Створити дзеркальну копію",
"turnInto": "Перетворити на",
"split": "Розділити",
"underline": "Підкреслення",
diff --git a/app/appearance/langs/zh-CN.json b/app/appearance/langs/zh-CN.json
index bb411ecdbc..6b5d255189 100644
--- a/app/appearance/langs/zh-CN.json
+++ b/app/appearance/langs/zh-CN.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "创建副本",
"runeCountWithEmbed": "含嵌入块字符数",
"wordCountWithEmbed": "含嵌入块字数",
"embedStatIncomplete": "部分嵌入块无法统计,结果不完整",
@@ -1609,7 +1610,7 @@
"sub": "下标",
"enter": "聚焦",
"enterBack": "聚焦到上层",
- "duplicate": "创建副本",
+ "duplicate": "创建副本 / 创建镜像副本",
"turnInto": "转换为",
"split": "分屏",
"underline": "下划线",
diff --git a/app/appearance/langs/zh-TW.json b/app/appearance/langs/zh-TW.json
index 806f16df4e..434588ec34 100644
--- a/app/appearance/langs/zh-TW.json
+++ b/app/appearance/langs/zh-TW.json
@@ -1,4 +1,5 @@
{
+ "duplicateCopy": "建立副本",
"runeCountWithEmbed": "含嵌入區塊字元數",
"wordCountWithEmbed": "含嵌入區塊字數",
"embedStatIncomplete": "部分嵌入區塊無法統計,結果不完整",
@@ -1609,7 +1610,7 @@
"sub": "下標",
"enter": "聚焦",
"enterBack": "聚焦到上層",
- "duplicate": "建立副本",
+ "duplicate": "建立副本 / 建立鏡像副本",
"turnInto": "轉換為",
"split": "並排顯示",
"underline": "底線",
diff --git a/app/src/config/entryVisibility/catalog.ts b/app/src/config/entryVisibility/catalog.ts
index 1792174d26..d2e9909610 100644
--- a/app/src/config/entryVisibility/catalog.ts
+++ b/app/src/config/entryVisibility/catalog.ts
@@ -105,7 +105,7 @@ const importChildren = () => [
];
const docTreeCommon = (multi = false) => [
- node("copy", lang("copy"), true, [...copyChildren(), node("duplicate", lang("duplicate"))]),
+ node("copy", lang("copy"), true, [...copyChildren(), node("duplicate", lang("duplicateCopy"))]),
node("move", lang("move")),
node("addToDatabase", lang("addToDatabase"), false),
node("delete", lang("delete")),
@@ -161,7 +161,7 @@ const gutterCopyChildren = () => [
node("copyText", lang("copyText")),
node("copy", lang("copy")),
node("copyAVID", lang("copyAVID")),
- node("duplicate", lang("duplicate")),
+ node("duplicate", lang("duplicateCopy")),
node("duplicateMirror", lang("duplicateMirror")),
node("duplicateCompletely", lang("duplicateCompletely")),
];
diff --git a/app/src/config/entryVisibility/ui.ts b/app/src/config/entryVisibility/ui.ts
index 5bf35308a1..90fac0bcf4 100644
--- a/app/src/config/entryVisibility/ui.ts
+++ b/app/src/config/entryVisibility/ui.ts
@@ -102,7 +102,7 @@ const createProfile = (base: Config.TEntryVisibilityBase, current = false, name?
const duplicateProfile = (profile: Config.IEntryVisibilityProfile) => {
const copy = JSON.parse(JSON.stringify(profile)) as Config.IEntryVisibilityProfile;
copy.id = genUUID();
- copy.name = uniqueName(`${profile.name} ${window.siyuan.languages.duplicate}`);
+ copy.name = uniqueName(`${profile.name} ${window.siyuan.languages.duplicateCopy}`);
copy.orders ||= createEntryOrderSnapshot();
return copy;
};
@@ -158,7 +158,7 @@ const profileCard = (
</div>
<div class="b3-card__actions b3-card__actions--right">
${active ? "" : `<button class="b3-button b3-button--outline" data-action="activate">${window.siyuan.languages.use}</button>`}
- <button class="block__icon block__icon--show ariaLabel" data-action="duplicate" data-position="north" aria-label="${window.siyuan.languages.duplicate}"><svg><use xlink:href="#iconCopy"></use></svg></button>
+ <button class="block__icon block__icon--show ariaLabel" data-action="duplicate" data-position="north" aria-label="${window.siyuan.languages.duplicateCopy}"><svg><use xlink:href="#iconCopy"></use></svg></button>
${builtin ? "" : `<button class="block__icon block__icon--show ariaLabel" data-action="export" data-position="north" aria-label="${window.siyuan.languages.export}"><svg><use xlink:href="#iconDownload"></use></svg></button>`}
<button class="block__icon block__icon--show${active || builtin ? " fn__none" : " block__icon--warning"} ariaLabel" data-action="delete" data-position="north" aria-label="${window.siyuan.languages.delete}"><svg><use xlink:href="#iconTrashcan"></use></svg></button>
</div>
@@ -706,7 +706,7 @@ export const mountEntryVisibility = (root: HTMLElement) => {
openProfileEditor(root, id);
} else if (action === "duplicate") {
const copy = profile ? duplicateProfile(profile) : createProfile(id as Config.TEntryVisibilityBase, false,
- `${baseLabel(id as Config.TEntryVisibilityBase)} ${window.siyuan.languages.duplicate}`);
+ `${baseLabel(id as Config.TEntryVisibilityBase)} ${window.siyuan.languages.duplicateCopy}`);
config.profiles.push(copy);
saveEntryVisibility(config);
renderProfileCards(root);
diff --git a/app/src/config/tabs/keymapUi.ts b/app/src/config/tabs/keymapUi.ts
index 470feefead..ada6831bc3 100644
--- a/app/src/config/tabs/keymapUi.ts
+++ b/app/src/config/tabs/keymapUi.ts
@@ -148,19 +148,7 @@ const buildKeymapCommandTexts = (): string[] => {
}
};
Object.keys(Constants.SIYUAN_KEYMAP.general).forEach(pushKey);
- Object.keys(Constants.SIYUAN_KEYMAP.editor.general).forEach((key) => {
- // TODO 把 window.siyuan.languages.duplicate 直接换成 "创建副本 / 创建镜像副本",
- // 原先使用 window.siyuan.languages.duplicate 的其他地方换成用新的键
- if (key === "duplicate") {
- const duplicate = window.siyuan.languages.duplicate;
- const duplicateMirror = window.siyuan.languages.duplicateMirror;
- if (duplicate && duplicateMirror) {
- out.push(`${duplicate} / ${duplicateMirror}`);
- }
- } else {
- pushKey(key);
- }
- });
+ Object.keys(Constants.SIYUAN_KEYMAP.editor.general).forEach(pushKey);
Object.keys(Constants.SIYUAN_KEYMAP.editor.heading).forEach(pushKey);
Object.keys(Constants.SIYUAN_KEYMAP.editor.insert).forEach(pushKey);
Object.keys(Constants.SIYUAN_KEYMAP.editor.list).forEach(pushKey);
@@ -287,11 +275,7 @@ const genKeymapItem = (keys: string) => {
continue;
}
const item = config[key] ?? template[key];
- let keymapName = window.siyuan.languages[key];
- if ("editor" + Constants.ZWSP + "general" === keys && key === "duplicate") {
- keymapName = `${window.siyuan.languages.duplicate} / ${window.siyuan.languages.duplicateMirror}`;
- }
- html.push(genKeymapRowHtml(keymapName, keys + Constants.ZWSP + key, item.custom, item.default));
+ html.push(genKeymapRowHtml(window.siyuan.languages[key], keys + Constants.ZWSP + key, item.custom, item.default));
}
return html.join("");
};
diff --git a/app/src/menus/navigation.ts b/app/src/menus/navigation.ts
index b6924c7441..9815803a70 100644
--- a/app/src/menus/navigation.ts
+++ b/app/src/menus/navigation.ts
@@ -131,7 +131,7 @@ const initMultiMenu = (selectItemElements: NodeListOf<HTMLElement>, app: App) =>
submenu: copySubMenu(blockIDs).concat([{
id: "duplicate",
iconHTML: "",
- label: window.siyuan.languages.duplicate,
+ label: window.siyuan.languages.duplicateCopy,
accelerator: window.siyuan.config.keymap.editor.general.duplicate.custom,
click() {
blockIDs.forEach((id) => {
@@ -623,7 +623,7 @@ export const initFileMenu = (app: App, notebookId: string, pathString: string, l
submenu: (copySubMenu([id]) as IMenu[]).concat([{
id: "duplicate",
iconHTML: "",
- label: window.siyuan.languages.duplicate,
+ label: window.siyuan.languages.duplicateCopy,
accelerator: window.siyuan.config.keymap.editor.general.duplicate.custom,
click() {
fetchPost("/api/filetree/duplicateDoc", {
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 500bd1db2c..0cb2da9e92 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -1271,7 +1271,7 @@ export class Gutter {
copyMenu.push({
id: "duplicate",
iconHTML: "",
- label: window.siyuan.languages.duplicate,
+ label: window.siyuan.languages.duplicateCopy,
accelerator: window.siyuan.config.keymap.editor.general.duplicate.custom,
click() {
duplicateBlock(selectsElement, protyle);
@@ -3306,7 +3306,7 @@ export class Gutter {
copyMenu.push({
id: "duplicate",
iconHTML: "",
- label: window.siyuan.languages.duplicate,
+ label: window.siyuan.languages.duplicateCopy,
accelerator: window.siyuan.config.keymap.editor.general.duplicate.custom,
click() {
duplicateBlock([nodeElement], protyle);
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index fae5e02c24..dcde2194d3 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -985,7 +985,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement | undef
copyMenu.push({
id: "duplicate",
iconHTML: "",
- label: window.siyuan.languages.duplicate,
+ label: window.siyuan.languages.duplicateCopy,
click: () => {
duplicateRows(blockElement, protyle, selectedItemInfos.map(item => item.itemID));
}
diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts
index 5c3fe4f44e..13dcb12e04 100644
--- a/app/src/protyle/render/av/col.ts
+++ b/app/src/protyle/render/av/col.ts
@@ -234,7 +234,7 @@ export const getEditHTML = (options: {
if (colData.type !== "block") {
html += `<button class="b3-menu__item${colData.type === "relation" ? " fn__none" : ""}" data-type="duplicateCol">
<svg class="b3-menu__icon" style=""><use xlink:href="#iconCopy"></use></svg>
- <span class="b3-menu__label">${window.siyuan.languages.duplicate}</span>
+ <span class="b3-menu__label">${window.siyuan.languages.duplicateCopy}</span>
</button>
<button class="b3-menu__item b3-menu__item--warning" data-type="removeCol">
<svg class="b3-menu__icon" style=""><use xlink:href="#iconTrashcan"></use></svg>
@@ -1318,7 +1318,7 @@ export const showColMenu = (protyle: IProtyle, blockElement: Element, cellElemen
menu.addItem({
id: "duplicate",
icon: "iconCopy",
- label: window.siyuan.languages.duplicate,
+ label: window.siyuan.languages.duplicateCopy,
click() {
fetchPost("/api/av/renderAttributeView", {
id: avID,
diff --git a/app/src/protyle/render/av/openMenuPanel.ts b/app/src/protyle/render/av/openMenuPanel.ts
index f7b548a518..d27e404243 100644
--- a/app/src/protyle/render/av/openMenuPanel.ts
+++ b/app/src/protyle/render/av/openMenuPanel.ts
@@ -1027,7 +1027,7 @@ export const openMenuPanel = (options: {
const menu = new Menu("moreFilter");
menu.addItem({
icon: "iconAdd",
- label: window.siyuan.languages.duplicate,
+ label: window.siyuan.languages.duplicateCopy,
click: () => {
const oldFilters = JSON.parse(JSON.stringify(data.view.filters));
duplicateFilterByPath(getEditableFilters(data), path);
diff --git a/app/src/protyle/render/av/view.ts b/app/src/protyle/render/av/view.ts
index b82fd8cd6d..8bafcbcd49 100644
--- a/app/src/protyle/render/av/view.ts
+++ b/app/src/protyle/render/av/view.ts
@@ -105,7 +105,7 @@ export const openViewMenu = (options: { protyle: IProtyle, blockElement: HTMLEle
menu.addItem({
id: "duplicate",
icon: "iconCopy",
- label: window.siyuan.languages.duplicate,
+ label: window.siyuan.languages.duplicateCopy,
click() {
document.querySelector(".av__panel")?.remove();
const id = Lute.NewNodeID();
@@ -314,7 +314,7 @@ export const getViewHTML = (data: IAV) => {
<svg class="b3-menu__icon">
<use xlink:href="#iconCopy"></use>
</svg>
- <span class="b3-menu__label">${window.siyuan.languages.duplicate}</span>
+ <span class="b3-menu__label">${window.siyuan.languages.duplicateCopy}</span>
</button>
<button class="b3-menu__item b3-menu__item--warning${data.views.length > 1 ? "" : " fn__none"}" data-type="delete-view">
<svg class="b3-menu__icon"><use xlink:href="#iconTrashcan"></use></svg>
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts
index 10ce995a34..3f43e497bf 100644
--- a/app/src/protyle/util/editorCommonEvent.ts
+++ b/app/src/protyle/util/editorCommonEvent.ts
@@ -2187,7 +2187,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
action = window.siyuan.languages.dragTipEmbed;
} else if (event.ctrlKey || protyle.lite) {
// Ctrl=创建副本;lite 模式无修饰键也为复制
- action = window.siyuan.languages.duplicate;
+ action = window.siyuan.languages.duplicateCopy;
} else if (isChild) {
action = window.siyuan.languages.dragTipListItemChild.replace("${x}", targetText);
} else {
@@ -2336,7 +2336,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
action = window.siyuan.languages.dragTipEmbed;
} else if (event.ctrlKey || protyle.lite) {
// Ctrl=创建副本;lite 模式无修饰键也为复制(不移动源块)
- action = window.siyuan.languages.duplicate;
+ action = window.siyuan.languages.duplicateCopy;
} else {
action = window.siyuan.languages.move;
}
diff --git a/app/src/protyle/util/tableControl.ts b/app/src/protyle/util/tableControl.ts
index ebb1b81e01..ad10d92699 100644
--- a/app/src/protyle/util/tableControl.ts
+++ b/app/src/protyle/util/tableControl.ts
@@ -1421,7 +1421,7 @@ export class TableControl {
if (this.selection.mode !== "cell") {
menu.append(new MenuItem({
icon: "iconCopy",
- label: window.siyuan.languages.duplicate,
+ label: window.siyuan.languages.duplicateCopy,
disabled: merged,
action: merged ? "iconInfo" : undefined,
actionLabel: merged ? window.siyuan.languages.splitMergedCellTip : undefined,