Skip to content

Commit 90ca966

Browse files
committed
修复翻译
1 parent 5591e13 commit 90ca966

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

2.trans.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,7 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
668668
'>{{Full anonymization}}<',
669669
'>{{Save fully anonymized database}}<',
670670
'>{{Light anonymization}}<',
671+
'{{This action will create a new copy of the database and anonymize it (remove all note content and leave only structure and some non-sensitive metadata)\n for sharing online for debugging purposes without fear of leaking your personal data.}}',
671672
'>{{This action will create a new copy of the database and do a light anonymization on it - specifically only content of all notes will be removed, but titles and attributes will remain. Additionally, custom JS frontend/backend script notes and custom widgets will remain. This provides more context to debug the issues.}}<',
672673
'>{{You can decide yourself if you want to provide fully or lightly anonymized database. Even fully anonymized DB is very useful, however in some cases lightly anonymized database can speed up the process of bug identification and fixing.}}<',
673674
'>{{Save lightly anonymized database}}<',
@@ -722,6 +723,7 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
722723
'>{{Note that tree and detail font sizing is relative to the main font size setting.}}<',
723724
'>{{Not all listed fonts may be available on your system.}}<',
724725
'>{{reload frontend}}<',
726+
'{{To apply font changes, click on}}',
725727
]
726728
replace_in_file(file_path, translation)
727729

3.make_release.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ def patch_mac(file_name):
335335

336336
if __name__ == '__main__':
337337

338+
print(f'DEBUG is {DEBUG}')
339+
338340
a = input(f'Delete folder {TRANS_RELEASE_FOLDER}, continue?(y)')
339341
if a not in ['y', ]:
340342
exit()
@@ -374,7 +376,7 @@ def patch_mac(file_name):
374376

375377
# mac
376378
download_and_patch(releases, 'mac')
377-
379+
378380
os.system(f'xdg-open {TRANS_RELEASE_FOLDER}')
379381

380382
print('finished')

translations.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
'Include note ': '',
185185
'Info message': '',
186186
'Jump to Note': '',
187+
'Jump to note': '',
187188
'Search in full text ': '',
188189
'Ctrl+Enter': '',
189190
'Link map': '',
@@ -1537,9 +1538,12 @@
15371538
'Visible Launchers': '',
15381539
'New Note': '',
15391540
'Search Notes': '',
1541+
'Search notes': '',
15401542
'Recent Changes': '',
1543+
'Recent changes': '',
15411544
'Bookmarks': '',
15421545
'Protected Session': '',
1546+
'Protected session': '',
15431547
'Sync Status': '',
15441548
'Hidden tree is used to record various application-level data which can stay most of the time hidden from the user view.': '',
15451549
"Make sure you know what you're doing. Incorrect changes in this subtree might potentially crash the application.": '',
@@ -1590,4 +1594,5 @@
15901594
All data / settings in this note (and its children) will be lost
15911595
and the launcher will be returned to its original location.': '',
15921596
'sort folders at the top': '',
1597+
'Monospace (code) font': '',
15931598
}

translations_cn.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
'Include note ': '包含笔记',
185185
'Info message': '笔记信息',
186186
'Jump to Note': '跳转到笔记',
187+
'Jump to note': '跳转到笔记',
187188
'Search in full text ': '全文搜索',
188189
'Ctrl+Enter': 'Ctrl+回车',
189190
'Link map': '链接地图',
@@ -1531,9 +1532,12 @@
15311532
'Visible Launchers': '可见启动器',
15321533
'New Note': '新笔记',
15331534
'Search Notes': '搜索笔记',
1535+
'Search notes': '搜索笔记',
15341536
'Recent Changes': '最近修改',
1537+
'Recent changes': '最近修改',
15351538
'Bookmarks': '书签',
15361539
'Protected Session': '保护会话',
1540+
'Protected session': '保护会话',
15371541
'Sync Status': '同步状态',
15381542
'Hidden tree is used to record various application-level data which can stay most of the time hidden from the user view.': '隐藏树用于记录各种应用程序级数据, 在大部分时间隐藏在用户视图之外.',
15391543
"Make sure you know what you're doing. Incorrect changes in this subtree might potentially crash the application.": '确保您知道自己在做什么. 错误地修改这个子树可能会导致应用程序崩溃.',
@@ -1582,5 +1586,6 @@
15821586
'Expand': '展开',
15831587
'Do you really want to reset "${this.node.title}"? \n All data / settings in this note (and its children) will be lost \n and the launcher will be returned to its original location.': '您确定要重置"${this.node.title}"吗? 这个笔记和它的子笔记的所有数据都会丢失, 并且启动器会恢复到它原来的位置.',
15841588
'sort folders at the top': '文件夹排列在前面',
1589+
'Monospace (code) font': '等宽字体 (代码)',
15851590
'': '',
15861591
}

0 commit comments

Comments
 (0)