Skip to content

Commit

Permalink
更新标签说明的翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
Nriver committed May 7, 2022
1 parent a7d54a8 commit 08a231c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
18 changes: 16 additions & 2 deletions 2.trans.py
Original file line number Diff line number Diff line change
Expand Up @@ -1311,6 +1311,7 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
"{{On which hour should this run. Should be used together with <code>#run=hourly</code>. Can be defined multiple times for more runs during the day.}}",
"{{scripts with this label won't be included into parent script execution.}}",
"{{keeps child notes sorted by title alphabetically}}",
"{{keep given note on top in its parent (applies only on sorted parents)}}",
"{{Hide promoted attributes on this note}}",
"{{editor is in read only mode. Works only for text and code notes.}}",
"{{text/code notes can be set automatically into read mode when they are too large. You can disable this behavior on per-note basis by adding this label to the note}}",
Expand All @@ -1323,11 +1324,21 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
"{{marks this note as a workspace which allows easy hoisting}}",
"{{defines box icon CSS class which will be used in tab when hoisted to this note}}",
"{{CSS color used in the note tab when hoisted to this note}}",
"{{new search notes will be created as children of this note}}",
"{{new search notes will be created as children of this note when hoisted to some ancestor of this note}}",
"{{default inbox location for new notes}}",
"{{new search notes will be created as children of this note}}",
"{{default inbox location for new notes when hoisted to some ancestor of this note}}",
"{{default inbox location for new notes}}",
"{{default location of SQL console notes}}",
"{{note with this label will appear in bookmarks as folder (allowing access to its children)}}",
"{{note with this label will appear in bookmarks}}",
"{{this note is hidden from left navigation tree, but still accessible with its URL}}",
"{{define an alias using which the note will be available under https://your_trilium_host/share/[your_alias]}}",
"{{default share page CSS will be omitted. Use when you make extensive styling changes.}}",
"{{marks note which is served on /share root.}}",
"{{note will be served in its raw format, without HTML wrapper}}",
"{{will forbid robot indexing of this note via <code>X-Robots-Tag: noindex</code> header}}",
"{{comma delimited names of relations which should be displayed. All other ones will be hidden.}}",
"{{comma delimited names of relations which should be hidden. All other ones will be displayed.}}",
"{{executes when note is created on backend}}",
"{{executes when note title is changed (includes note creation as well)}}",
"{{executes when note is changed (includes note creation as well)}}",
Expand All @@ -1337,6 +1348,9 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
"{{attached note's attributes will be inherited even without parent-child relationship. See template for details.}}",
'{{notes of type "render HTML note" will be rendered using a code note (HTML or script) and it is necessary to point using this relation to which note should be rendered}}',
"{{target of this relation will be executed and rendered as a widget in the sidebar}}",
"{{CSS note which will be injected into the share page. CSS note must be in the shared sub-tree as well. Consider using 'shareHiddenFromTree' and 'shareOmitDefaultCss' as well.}}",
"{{JavaScript note which will be injected into the share page. JS note must be in the shared sub-tree as well. Consider using 'shareHiddenFromTree'.}}",
"{{Favicon note to be set in the shared page. Typically you want to set it to share root and make it inheritable. Favicon note must be in the shared sub-tree as well. Consider using 'shareHiddenFromTree'.}}",
"'{{see}} <",
]
replace_in_file(file_path, translation)
Expand Down
14 changes: 14 additions & 0 deletions translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1372,4 +1372,18 @@
'Sync server host is not configured. Please configure sync first.': '',
'Sync server handshake has been successful, sync has been started.': '',
'Partial request ${requestId}, index ${pageIndex} of ${pageCount} of pages does not have expected record.': '',
'keep given note on top in its parent (applies only on sorted parents)': '',
'note with this label will appear in bookmarks': '',
'note with this label will appear in bookmarks as folder (allowing access to its children)': '',
'this note is hidden from left navigation tree, but still accessible with its URL': '',
'define an alias using which the note will be available under https://your_trilium_host/share/[your_alias]': '',
'default share page CSS will be omitted. Use when you make extensive styling changes.': '',
'marks note which is served on /share root.': '',
'note will be served in its raw format, without HTML wrapper': '',
'will forbid robot indexing of this note via <code>X-Robots-Tag: noindex</code> header': '',
'comma delimited names of relations which should be displayed. All other ones will be hidden.': '',
'comma delimited names of relations which should be hidden. All other ones will be displayed.': '',
"CSS note which will be injected into the share page. CSS note must be in the shared sub-tree as well. Consider using 'shareHiddenFromTree' and 'shareOmitDefaultCss' as well.": '',
"JavaScript note which will be injected into the share page. JS note must be in the shared sub-tree as well. Consider using 'shareHiddenFromTree'.": '',
"Favicon note to be set in the shared page. Typically you want to set it to share root and make it inheritable. Favicon note must be in the shared sub-tree as well. Consider using 'shareHiddenFromTree'.": '',
}
16 changes: 15 additions & 1 deletion translations_cn.py
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@
'Light anonymization': '轻度匿名化',
'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 remaing. Additionally, custom JS frontend/backend script notes and custom widgets will remain. This provides more context to debug the issues.': '此操作将创建数据库的新副本并对其进行轻度匿名化 - 仅删除所有笔记的内容,但标题和属性将保留. 另外, 自定义前端和后端JS代码以及自定义组件会保留. 这会给查找bug提供更完整的环境.',
'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.': '您可以自行决定是否要提供完全或轻度匿名化的数据库. 完全匿名化的数据库会对解决问题有帮助, 在一些情况下, 如果能提供轻度匿名化的数据库能加快定位bug和修复的过程.',
'Save lightly anonymized database': '保存轻度匿名化数据库',
'Save lightly anonymized database': '保存轻度匿名化的数据库',
'Created fully anonymized database in ${resp.anonymizedFilePath}': '成功在 ${resp.anonymizedFilePath} 中创建了完全匿名化的数据库',
'Created lightly anonymized database in ${resp.anonymizedFilePath}': '成功在 ${resp.anonymizedFilePath} 中创建了轻度匿名化的数据库',
'Move note': '移动笔记',
Expand All @@ -1366,5 +1366,19 @@
'Sync server host is not configured. Please configure sync first.': '未配置同步服务器, 请先设置好同步服务器.',
'Sync server handshake has been successful, sync has been started.': '同步服务器握手成功, 同步已启动.',
'Partial request ${requestId}, index ${pageIndex} of ${pageCount} of pages does not have expected record.': '不完整请求 ${requestId}, ${pageCount} 个页面的索引 ${pageIndex} 没有预期的记录.',
'keep given note on top in its parent (applies only on sorted parents)': '将笔记放在其父笔记的顶部(仅适用于排序的父级)',
'note with this label will appear in bookmarks': '带有此标签的笔记将出现在书签中',
'note with this label will appear in bookmarks as folder (allowing access to its children)': '带有此标签的笔记将作为文件夹出现在书签中(允许访问其子笔记)',
'this note is hidden from left navigation tree, but still accessible with its URL': '此笔记在左侧笔记树中隐藏, 但仍可通过其 URL 访问',
'define an alias using which the note will be available under https://your_trilium_host/share/[your_alias]': '定义一个别名,使用该别名可以在 https://服务器地址/share/[你定义的别名] 下使用该笔记',
'default share page CSS will be omitted. Use when you make extensive styling changes.': '默认共享页面 CSS 将被忽略. 当你想自定义样式时请使用这个标签.',
'marks note which is served on /share root.': '将笔记标记为 /share 访问的首页',
'note will be served in its raw format, without HTML wrapper': '笔记会通过原始格式直接展示, 不会通过HTML页面封装',
'will forbid robot indexing of this note via <code>X-Robots-Tag: noindex</code> header': '通过 <code>X-Robots-Tag: noindex</code> 请求头来阻止爬虫机器人抓取该笔记',
'comma delimited names of relations which should be displayed. All other ones will be hidden.': '显示通过逗号分隔的关联关系. 其它的会被隐藏.',
'comma delimited names of relations which should be hidden. All other ones will be displayed.': '隐藏通过逗号分隔的关联关系, 而其它的会显示出来.',
"CSS note which will be injected into the share page. CSS note must be in the shared sub-tree as well. Consider using 'shareHiddenFromTree' and 'shareOmitDefaultCss' as well.": "会被注入到分享页面的CSS笔记. CSS笔记必须也在共享笔记的子树范围内. 请考同时使用 'shareHiddenFromTree' 和 'shareOmitDefaultCss' 标签.",
"JavaScript note which will be injected into the share page. JS note must be in the shared sub-tree as well. Consider using 'shareHiddenFromTree'.": "会被注入到分享页面的JS笔记. JS笔记必须也在共享笔记的子树范围内. 请考同时使用 'shareHiddenFromTree' 标签.",
"Favicon note to be set in the shared page. Typically you want to set it to share root and make it inheritable. Favicon note must be in the shared sub-tree as well. Consider using 'shareHiddenFromTree'.": "设置为共享页面 Favicon 的笔记. 一般把它放到共享笔记的根目录, 同时让它设置为可继承的. Favicon 笔记必须也在共享笔记的子树范围内. 请考虑同时使用 'shareHiddenFromTree' 标签",
'': '',
}

0 comments on commit 08a231c

Please sign in to comment.