Skip to content

Commit

Permalink
更新包含笔记的翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
Nriver committed Nov 20, 2023
1 parent d422902 commit 336f831
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
11 changes: 5 additions & 6 deletions 2.trans.py
Expand Up @@ -492,6 +492,11 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
'>{{Include note }}<',
'>{{enter}}<',
'{{search for note by its name}}',
' logError("{{No noteId to include.}}"',
'{{Box size of the included note:}}',
'{{small (~ 10 lines)}}',
'{{medium (~ 30 lines)}}',
'{{full (box shows complete text)}}',
]
replace_in_file(file_path, translation)

Expand Down Expand Up @@ -1087,12 +1092,6 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
]
replace_in_file(file_path, translation)

file_path = 'src/public/app/dialogs/include_note.js'
translation = [
' logError("{{No noteId to include.}}"',
]
replace_in_file(file_path, translation)

file_path = 'src/public/app/dialogs/markdown_import.js'
translation = [
'showMessage("{{Markdown content has been imported into the document.}}"',
Expand Down
4 changes: 4 additions & 0 deletions translations.py
Expand Up @@ -1715,4 +1715,8 @@
'Convert into attachment': '',
'Close HighlightsListWidget': '',
'Copy image reference to the clipboard, can be pasted into a text note.': '',
'Box size of the included note:': '',
'small (~ 10 lines)': '',
'medium (~ 30 lines)': '',
'full (box shows complete text)': '',
}
4 changes: 4 additions & 0 deletions translations_cn.py
Expand Up @@ -1697,5 +1697,9 @@
'Convert into attachment': '转换为附件',
'Close HighlightsListWidget': '关闭高亮列表',
'Copy image reference to the clipboard, can be pasted into a text note.': '复制图像引用到剪贴板, 可以粘贴到文本笔记中.',
'Box size of the included note:': '包含的笔记框大小',
'small (~ 10 lines)': '小(约10行)',
'medium (~ 30 lines)': '中等(约30行)',
'full (box shows complete text)': '完整(框显示完整文本)',
'': '',
}

0 comments on commit 336f831

Please sign in to comment.