Improve user guide entry (#10939)
* 将点击后会打开用户指南的「帮助」都改为「思源笔记用户指南」 * 修复西班牙语无法打开用户指南 * 去除「思源笔记」
This commit is contained in:
parent
d702379b0e
commit
dcdb179031
11 changed files with 11 additions and 5 deletions
|
@ -1058,6 +1058,7 @@
|
|||
"parentRelation": "Parent - Child",
|
||||
"openInNewTab": "Open in New Tab",
|
||||
"help": "Help",
|
||||
"userGuide": "User Guide",
|
||||
"paragraphBeginningSpace": "Two empty spaces at the beginning of the paragraph",
|
||||
"outline": "Outline",
|
||||
"newFile": "New Doc",
|
||||
|
|
|
@ -1058,6 +1058,7 @@
|
|||
"parentRelation": "Padre - Hijo",
|
||||
"openInNewTab": "Abrir en una nueva pestaña",
|
||||
"help": "Ayuda",
|
||||
"userGuide": "User Guide",
|
||||
"paragraphBeginningSpace": "Dos espacios vacíos al principio del párrafo",
|
||||
"outline": "Esquema",
|
||||
"newFile": "Nuevo documento",
|
||||
|
|
|
@ -1058,6 +1058,7 @@
|
|||
"parentRelation": "Parent - Enfant",
|
||||
"openInNewTab": "Ouvrir dans un nouvel onglet",
|
||||
"help": "Aide",
|
||||
"userGuide": "User Guide",
|
||||
"paragraphBeginningSpace": "Deux espaces vides au début du paragraphe",
|
||||
"outline": "Outline",
|
||||
"newFile": "Nouveau Doc",
|
||||
|
|
|
@ -1058,6 +1058,7 @@
|
|||
"parentRelation": "父子關係",
|
||||
"openInNewTab": "在新分頁中打開",
|
||||
"help": "幫助",
|
||||
"userGuide": "用戶指南",
|
||||
"paragraphBeginningSpace": "段落開頭空兩格",
|
||||
"outline": "大綱",
|
||||
"newFile": "新建文檔",
|
||||
|
|
|
@ -1058,6 +1058,7 @@
|
|||
"parentRelation": "父子关系",
|
||||
"openInNewTab": "在新页签中打开",
|
||||
"help": "帮助",
|
||||
"userGuide": "用户指南",
|
||||
"paragraphBeginningSpace": "段落开头空两格",
|
||||
"outline": "大纲",
|
||||
"newFile": "新建文档",
|
||||
|
|
|
@ -187,6 +187,7 @@ export abstract class Constants {
|
|||
zh_CHT: "20211226090932-5lcq56f",
|
||||
en_US: "20210808180117-6v0mkxr",
|
||||
fr_FR: "20210808180117-6v0mkxr",
|
||||
es_ES: "20210808180117-6v0mkxr",
|
||||
};
|
||||
public static readonly QUICK_DECK_ID = "20230218211946-2kw8jgx";
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ export const initStatus = (isWindow = false) => {
|
|||
window.siyuan.menus.menu.remove();
|
||||
window.siyuan.menus.menu.element.setAttribute("data-name", "statusHelp");
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
label: window.siyuan.languages.help,
|
||||
label: window.siyuan.languages.userGuide,
|
||||
icon: "iconHelp",
|
||||
click: () => {
|
||||
mountHelp();
|
||||
|
|
|
@ -194,7 +194,7 @@ export const newCenterEmptyTab = (app: App) => {
|
|||
</div>
|
||||
<div class="b3-list-item" id="editorEmptyHelp">
|
||||
<svg class="b3-list-item__graphic"><use xlink:href="#iconHelp"></use></svg>
|
||||
<span>${window.siyuan.languages.help}</span>
|
||||
<span>${window.siyuan.languages.userGuide}</span>
|
||||
</div>
|
||||
</div>`,
|
||||
callback(tab: Tab) {
|
||||
|
|
|
@ -428,7 +428,7 @@ export const workspaceMenu = (app: App, rect: DOMRect) => {
|
|||
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
||||
}
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
label: window.siyuan.languages.help,
|
||||
label: window.siyuan.languages.userGuide,
|
||||
icon: "iconHelp",
|
||||
click: () => {
|
||||
mountHelp();
|
||||
|
|
|
@ -110,7 +110,7 @@ export const initRightMenu = (app: App) => {
|
|||
</div>
|
||||
<div class="b3-menu__separator"></div>
|
||||
<div class="b3-menu__item" id="menuHelp">
|
||||
<svg class="b3-menu__icon"><use xlink:href="#iconHelp"></use></svg><span class="b3-menu__label">${window.siyuan.languages.help}</span>
|
||||
<svg class="b3-menu__icon"><use xlink:href="#iconHelp"></use></svg><span class="b3-menu__label">${window.siyuan.languages.userGuide}</span>
|
||||
</div>
|
||||
<a class="b3-menu__item" href="${"zh_CN" === window.siyuan.config.lang || "zh_CHT" === window.siyuan.config.lang ? "https://ld246.com/article/1649901726096" : "https://liuyun.io/article/1686530886208"}" target="_blank">
|
||||
<svg class="b3-menu__icon"><use xlink:href="#iconFeedback"></use></svg>
|
||||
|
|
|
@ -32,7 +32,7 @@ export const setEmpty = (app: App) => {
|
|||
<svg class="b3-list-item__graphic"><use xlink:href="#iconFilesRoot"></use></svg><span class="fn__space"></span><span class="b3-list-item__text">${window.siyuan.languages.newNotebook}</span>
|
||||
</div>
|
||||
<div class="b3-list-item" id="emptyHelp">
|
||||
<svg class="b3-list-item__graphic"><use xlink:href="#iconHelp"></use></svg><span class="fn__space"></span><span class="b3-list-item__text">${window.siyuan.languages.help}</span>
|
||||
<svg class="b3-list-item__graphic"><use xlink:href="#iconHelp"></use></svg><span class="fn__space"></span><span class="b3-list-item__text">${window.siyuan.languages.userGuide}</span>
|
||||
</div>`;
|
||||
emptyElement.addEventListener("click", (event) => {
|
||||
let target = event.target as HTMLElement;
|
||||
|
|
Loading…
Add table
Reference in a new issue