Skip to content

Commit

Permalink
更新 0.48.6 的翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
Nriver committed Nov 23, 2021
1 parent e465976 commit 0c8419f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions translations_cn.py
Original file line number Diff line number Diff line change
Expand Up @@ -1267,5 +1267,9 @@
'Type text to filter shortcuts...': '输入关键字过滤快捷键...',
'Shortcuts': '快捷键',
'Backup': '备份',
'Content width': '内容宽度',
'Trilium by default limits max content width to improve readability for maximized screens on wide screens.': 'Trilium默认会限制内容的最大宽度以提高在宽屏中全屏时的可读性.',
'Max content width in pixels': '内容最大宽度(像素)',
'To content width changes, click on': '修改宽度后, 请点击',
'': '',
}
9 changes: 7 additions & 2 deletions trilium_trans.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,11 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
translation = [
'>{{Options}}<',
'>{{Appearance}}<',
'>{{Shortcuts}}<'
'>{{Shortcuts}}<',
'>{{Keyboard shortcuts}}<',
'>{{Code notes}}<',
'>{{Username & password}}<',
'>{{Backup}}<'
'>{{Backup}}<',
'>{{Sync}}<',
'>{{Other}}<',
'>{{Advanced}}<',
Expand Down Expand Up @@ -597,6 +597,10 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
"title: '{{Light}}",
'"{{Theme defined}}"',
' {{To apply font changes, click on}}',
'>{{Content width}}<',
'>{{Trilium by default limits max content width to improve readability for maximized screens on wide screens.}}<',
'>{{Max content width in pixels}}<',
' {{To content width changes, click on}}',
]
replace_in_file(file_path, translation)

Expand Down Expand Up @@ -1837,6 +1841,7 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
'title: "{{File}}"',
'title: "{{Image}}"',
'title: "{{Saved search}}"',
'title: "{{Note Map}}"',
'title: "{{Text}}"',
'title: "{{Relation Map}}"',
'title: "{{Render Note}}"',
Expand Down

0 comments on commit 0c8419f

Please sign in to comment.