Skip to content

Commit 8be68b8

Browse files
committed
更新翻译
1 parent 8adae1d commit 8be68b8

File tree

3 files changed

+34
-7
lines changed

3 files changed

+34
-7
lines changed

2.trans.py

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,11 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
344344
' {{delete also all clones}}',
345345
'''title="{{Normal (soft) deletion only marks the notes as deleted and they can be undeleted (in recent changes dialog) within a period of time. Checking this option will erase the notes immediatelly and it won't be possible to undelete the notes.}}"''',
346346
''' {{erase notes permanently (can't be undone). This will force application reload.}}''',
347+
'{{can be undone in recent changes}}',
348+
"{{erase notes permanently (can't be undone), including all clones. This will force application reload.}}",
349+
'{{No note will be deleted (only clones).}}',
350+
'.append(`{{Note}} `)',
351+
'.append(`{{ (to be deleted) is referenced by relation <code>${attr.name}</code> originating from }}`)',
347352
]
348353
replace_in_file(file_path, translation)
349354

@@ -590,6 +595,7 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
590595
file_path = 'src/public/app/widgets/dialogs/recent_changes.js'
591596
translation = [
592597
'>{{Recent changes}}<',
598+
'{{Erase deleted notes now}}',
593599
]
594600
replace_in_file(file_path, translation)
595601

@@ -818,6 +824,13 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
818824
]
819825
replace_in_file(file_path, translation)
820826

827+
file_path = 'src/public/app/widgets/dialogs/options/options_tab.js'
828+
translation = [
829+
'title: "{{Options status}}"',
830+
'message: "{{Options change have been saved.}}",',
831+
]
832+
replace_in_file(file_path, translation)
833+
821834
file_path = 'src/public/app/widgets/dialogs/options/password.js'
822835
translation = [
823836
'return "{{Password}}"',
@@ -1084,6 +1097,9 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
10841097
translation = [
10851098
"title: '{{new note}}",
10861099
'showMessage("{{Note executed}}"',
1100+
'{{Note revision has been created.}}',
1101+
'"{{Switching to desktop version}}"',
1102+
'"{{Switching to mobile version}}"',
10871103
]
10881104
replace_in_file(file_path, translation)
10891105

@@ -1212,13 +1228,6 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
12121228
]
12131229
replace_in_file(file_path, translation)
12141230

1215-
file_path = 'src/public/app/services/entrypoints.js'
1216-
translation = [
1217-
"title: '{{new note}}",
1218-
'showMessage("{{Note executed}}"',
1219-
]
1220-
replace_in_file(file_path, translation)
1221-
12221231
file_path = 'src/public/app/services/glob.js'
12231232
translation = [
12241233
'>{{Search tips}}<',

translations.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,4 +1494,12 @@
14941494
'Enable Line Wrap (change might need a frontend reload to take effect)': '',
14951495
'Tray': '',
14961496
'Enable tray (Trilium needs to be restarted for this change to take effect)': '',
1497+
'Note revision has been created.': '',
1498+
'Switching to desktop version': '',
1499+
'Switching to mobile version': '',
1500+
'Options status': '',
1501+
'can be undone in recent changes': '',
1502+
"erase notes permanently (can't be undone), including all clones. This will force application reload.": '',
1503+
'No note will be deleted (only clones).': '',
1504+
' (to be deleted) is referenced by relation <code>${attr.name}</code> originating from ': '',
14971505
}

translations_cn.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,5 +1487,15 @@
14871487
'Enable Line Wrap (change might need a frontend reload to take effect)': '启用自动换行(需要重新加载前端才会生效)',
14881488
'Tray': '托盘',
14891489
'Enable tray (Trilium needs to be restarted for this change to take effect)': '启用托盘图标(修改需要重启生效)',
1490+
'Note revision has been created.': '笔记历史已创建',
1491+
'Switching to desktop version': '正在切换到桌面版',
1492+
'Switching to mobile version': '正在切换到移动版',
1493+
'Options status': '选项状态',
1494+
'Options change have been saved.': '选项修改已保存',
1495+
'can be undone in recent changes': '可以在最近修改里恢复',
1496+
"erase notes permanently (can't be undone), including all clones. This will force application reload.": '永久删除笔记(不可恢复), 包括所有的克隆. 应用会强制重新加载.',
1497+
'No note will be deleted (only clones).': '没有笔记会被删除(只删除克隆).',
1498+
' (to be deleted) is referenced by relation <code>${attr.name}</code> originating from ': '(将被删除的笔记) 被以下关系 <code>${attr.name}</code> 引用, 来自 ',
1499+
'Erase deleted notes now': '永久删除已删除的笔记(不可恢复)',
14901500
'': '',
14911501
}

0 commit comments

Comments
 (0)