Skip to content

Commit 2cc6b11

Browse files
committed
Web view页面功能翻译
1 parent 43f0f39 commit 2cc6b11

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

2.trans.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2890,6 +2890,16 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
28902890
]
28912891
replace_in_file(file_path, translation, TARGET_PATH)
28922892

2893+
file_path = 'src/public/app/widgets/type_widgets/web_view.js'
2894+
translation = [
2895+
'>{{Web View}}<',
2896+
'{{Note of type Web View allow you to embed websites into Trilium.}}',
2897+
'{{To start, please create a label with a URL address you want to embed, e.g. <code>#webViewSrc="http://www.google.com"</code>}}',
2898+
'{{Disclaimer on the experimental status}}',
2899+
'{{Web View is an experimental note type, and it might be removed or substantially changed in the future. Web View works also only in the desktop build.}}',
2900+
]
2901+
replace_in_file(file_path, translation)
2902+
28932903
file_path = 'src/services/export/opml.js'
28942904
translation = [
28952905
'>{{Trilium export}}<',

translations.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,4 +1459,8 @@
14591459
'Relations': '',
14601460
'Notes': '',
14611461
'Web View': '',
1462+
'Note of type Web View allow you to embed websites into Trilium.': '',
1463+
'To start, please create a label with a URL address you want to embed, e.g. <code>#webViewSrc="http://www.google.com"</code>': '',
1464+
'Disclaimer on the experimental status': '',
1465+
'Web View is an experimental note type, and it might be removed or substantially changed in the future. Web View works also only in the desktop build.': '',
14621466
}

translations_cn.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,5 +1454,9 @@
14541454
'Relations': '关系',
14551455
'Notes': '笔记',
14561456
'Web View': '网页视图',
1457+
'Note of type Web View allow you to embed websites into Trilium.': '网页视图类型的笔记允许您将网站嵌入到 Trilium.',
1458+
'To start, please create a label with a URL address you want to embed, e.g. <code>#webViewSrc="http://www.google.com"</code>': '首先, 请创建一个带有您要嵌入的 URL 地址的标签, 例如<code>#webViewSrc="https://www.baidu.com"</code>',
1459+
'Disclaimer on the experimental status': '实验性功能免责声明',
1460+
'Web View is an experimental note type, and it might be removed or substantially changed in the future. Web View works also only in the desktop build.': '网页视图是一种实验性笔记类型, 将来可能会被删除或大幅更改. 网页视图只在桌面端有效',
14571461
'': '',
14581462
}

0 commit comments

Comments
 (0)