From f3eefa6e65cd2fbe88ec60f0ad762f1953e25b81 Mon Sep 17 00:00:00 2001 From: linonetwo Date: Tue, 6 Feb 2024 20:06:29 +0800 Subject: [PATCH] refactor: update translation of tiddlyweb --- plugins/tiddlywiki/tiddlyweb/GettingStarted.tid | 15 +++------------ .../tiddlyweb/configOfficialPluginLibrary.tid | 4 +++- .../tiddlyweb/language/en-GB/GettingStarted.tid | 14 ++++++++++++++ .../tiddlyweb/language/en-GB/Translations.multids | 5 +++++ .../tiddlyweb/language/en-GB/readme.tid | 7 +++++++ .../tiddlyweb/language/zh-Hans/GettingStarted.tid | 14 ++++++++++++++ .../language/zh-Hans/Translations.multids | 3 +++ .../tiddlyweb/language/zh-Hans/readme.tid | 7 +++++++ plugins/tiddlywiki/tiddlyweb/readme.tid | 6 ++---- .../tiddlyweb/syncer-actions-copy-logs.tid | 4 +++- .../tiddlyweb/syncer-actions-login-status.tid | 2 ++ .../tiddlywiki/tiddlyweb/syncer-actions-login.tid | 2 ++ .../tiddlyweb/syncer-actions-logout.tid | 2 ++ .../tiddlyweb/syncer-actions-refresh.tid | 2 ++ .../tiddlyweb/syncer-actions-save-snapshot.tid | 2 ++ 15 files changed, 71 insertions(+), 18 deletions(-) create mode 100644 plugins/tiddlywiki/tiddlyweb/language/en-GB/GettingStarted.tid create mode 100644 plugins/tiddlywiki/tiddlyweb/language/en-GB/Translations.multids create mode 100644 plugins/tiddlywiki/tiddlyweb/language/en-GB/readme.tid create mode 100644 plugins/tiddlywiki/tiddlyweb/language/zh-Hans/GettingStarted.tid create mode 100644 plugins/tiddlywiki/tiddlyweb/language/zh-Hans/Translations.multids create mode 100644 plugins/tiddlywiki/tiddlyweb/language/zh-Hans/readme.tid diff --git a/plugins/tiddlywiki/tiddlyweb/GettingStarted.tid b/plugins/tiddlywiki/tiddlyweb/GettingStarted.tid index 08df08c07..012dce8aa 100644 --- a/plugins/tiddlywiki/tiddlyweb/GettingStarted.tid +++ b/plugins/tiddlywiki/tiddlyweb/GettingStarted.tid @@ -1,16 +1,7 @@ title: GettingStarted tags: $:/tags/GettingStarted -caption: Step 1
Syncing +caption: <> -Welcome to ~TiddlyWiki and the ~TiddlyWiki community +\define lingo-base() $:/plugins/tiddlywiki/tiddlyweb/language/ -Visit https://tiddlywiki.com/ to find out more about ~TiddlyWiki and what it can do. - -! Syncing Changes to the Server - -Before you can start storing important information in ~TiddlyWiki it is important to make sure that your changes are being reliably saved by the server. - -# Create a new tiddler using the {{$:/core/images/new-button}} button in the sidebar on the right -# Click the {{$:/core/images/done-button}} button at the top right of the new tiddler -# Check the ~TiddlyWiki command line for a message confirming the tiddler has been saved -# Refresh the page in the browser to and verify that the new tiddler has been correctly saved +<> diff --git a/plugins/tiddlywiki/tiddlyweb/configOfficialPluginLibrary.tid b/plugins/tiddlywiki/tiddlyweb/configOfficialPluginLibrary.tid index d2a07991a..dc5b3ae7e 100644 --- a/plugins/tiddlywiki/tiddlyweb/configOfficialPluginLibrary.tid +++ b/plugins/tiddlywiki/tiddlyweb/configOfficialPluginLibrary.tid @@ -4,4 +4,6 @@ url: https://tiddlywiki.com/library/v5.1.23/index.html caption: {{$:/language/OfficialPluginLibrary}} enabled: no -The official plugin library is disabled when using the client-server configuration. Instead, plugins should be installed via the `tiddlywiki.info` file, as described [[here|https://tiddlywiki.com/#Installing%20a%20plugin%20from%20the%20plugin%20library]]. \ No newline at end of file +\define lingo-base() $:/plugins/tiddlywiki/tiddlyweb/language/ + +<> diff --git a/plugins/tiddlywiki/tiddlyweb/language/en-GB/GettingStarted.tid b/plugins/tiddlywiki/tiddlyweb/language/en-GB/GettingStarted.tid new file mode 100644 index 000000000..990b02f81 --- /dev/null +++ b/plugins/tiddlywiki/tiddlyweb/language/en-GB/GettingStarted.tid @@ -0,0 +1,14 @@ +title: $:/plugins/tiddlywiki/tiddlyweb/language/en-GB/GettingStarted + +Welcome to ~TiddlyWiki and the ~TiddlyWiki community + +Visit https://tiddlywiki.com/ to find out more about ~TiddlyWiki and what it can do. + +! Syncing Changes to the Server + +Before you can start storing important information in ~TiddlyWiki it is important to make sure that your changes are being reliably saved by the server. + +# Create a new tiddler using the {{$:/core/images/new-button}} button in the sidebar on the right +# Click the {{$:/core/images/done-button}} button at the top right of the new tiddler +# Check the ~TiddlyWiki command line for a message confirming the tiddler has been saved +# Refresh the page in the browser to and verify that the new tiddler has been correctly saved diff --git a/plugins/tiddlywiki/tiddlyweb/language/en-GB/Translations.multids b/plugins/tiddlywiki/tiddlyweb/language/en-GB/Translations.multids new file mode 100644 index 000000000..ac6498f9a --- /dev/null +++ b/plugins/tiddlywiki/tiddlyweb/language/en-GB/Translations.multids @@ -0,0 +1,5 @@ +title: $:/plugins/tiddlywiki/tiddlyweb/language/en-GB/ + +ConfigOfficialPluginLibrary: The official plugin library is disabled when using the client-server configuration. Instead, plugins should be installed via the `tiddlywiki.info` file, as described [[here|https://tiddlywiki.com/#Installing%20a%20plugin%20from%20the%20plugin%20library]]. +GettingStartedStep1: Step 1
Syncing +CopySyncerLogs: Copy syncer logs to clipboard \ No newline at end of file diff --git a/plugins/tiddlywiki/tiddlyweb/language/en-GB/readme.tid b/plugins/tiddlywiki/tiddlyweb/language/en-GB/readme.tid new file mode 100644 index 000000000..63a487e80 --- /dev/null +++ b/plugins/tiddlywiki/tiddlyweb/language/en-GB/readme.tid @@ -0,0 +1,7 @@ +title: $:/plugins/tiddlywiki/tiddlyweb/language/en-GB/readme + +This plugin runs in the browser to synchronise tiddler changes to and from a TiddlyWeb-compatible server (including TiddlyWiki 5 itself, running on Node.js). It is inert when run under Node.js. Disabling this plugin via the browser can not be undone via the browser since this plugin provides the mechanism to synchronize settings with the server. + +Changes made while offline are saved in memory and automatically synchonised with the server when the connection is re-established. However, if the browser tab is closed or another URL is loaded, the in-memory changes will be lost. The [[https://tiddlywiki.com/#BrowserStorage Plugin]] may be added to provide temporary filesystem storage of tiddler changes made while offline and enable them to be synchronised with the server the next time the wiki is loaded in the same browser. + +[[Source code|https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/tiddlyweb]] diff --git a/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/GettingStarted.tid b/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/GettingStarted.tid new file mode 100644 index 000000000..814f8b9c9 --- /dev/null +++ b/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/GettingStarted.tid @@ -0,0 +1,14 @@ +title: $:/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/GettingStarted + +欢迎来到太微和太微社区 + +访问 https://tiddlywiki.com/ 了解太微的细节和了解它能做什么。 + +! 同步更改到服务器 + +在你开始在太微中存储重要信息之前,确保你的修改被服务器可靠地保存是非常重要的。 + +# 使用右侧边栏的 {{$:/core/images/new-button}} 按钮创建一个新条目 +# 点击新条目右上方的 {{$:/core/images/done-button}} 按钮 +# 检查太微命令行是否有确认条目已保存的信息 +# 刷新浏览器页面,确认新条目已正确保存 diff --git a/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/Translations.multids b/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/Translations.multids new file mode 100644 index 000000000..f49324b82 --- /dev/null +++ b/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/Translations.multids @@ -0,0 +1,3 @@ +title: $:/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/ + +ConfigOfficialPluginLibrary: 使用客户端-服务器配置时,官方插件库将被禁用。取而代之的是,应按照[[here|https://tiddlywiki.com/#Installing%20a%20plugin%20from%20the%20plugin%20library]]所述,通过 "tiddlywiki.info" 文件安装插件。 \ No newline at end of file diff --git a/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/readme.tid b/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/readme.tid new file mode 100644 index 000000000..b60ef77e2 --- /dev/null +++ b/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/readme.tid @@ -0,0 +1,7 @@ +title: $:/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/readme + +该插件在浏览器中运行,用于双向同步更改的条目到与 TiddlyWeb 兼容的服务器上(包括在 Node.js 上运行的 TiddlyWiki 5 本身)。在 Node.js 上运行时,它是无法自救的:由于就是该插件提供了与服务器同步设置和插件的机制,因此通过浏览器禁用该插件后,是无法撤销对自己的禁用的。 + +离线时所作的更改会保存在内存中,并在重新建立连接时自动与服务器同步。不过,如果关闭浏览器标签页或加载另一个 URL,内存中的更改就会丢失。可以添加[[https://tiddlywiki.com/#BrowserStorage Plugin]],为离线时的条目更改提供临时文件系统存储,并使其在下次在同一浏览器中加载知识库时与服务器同步。 + +[[源代码|https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/tiddlyweb]] diff --git a/plugins/tiddlywiki/tiddlyweb/readme.tid b/plugins/tiddlywiki/tiddlyweb/readme.tid index ee30a2dd4..ac3991be6 100644 --- a/plugins/tiddlywiki/tiddlyweb/readme.tid +++ b/plugins/tiddlywiki/tiddlyweb/readme.tid @@ -1,7 +1,5 @@ title: $:/plugins/tiddlywiki/tiddlyweb/readme -This plugin runs in the browser to synchronise tiddler changes to and from a TiddlyWeb-compatible server (including TiddlyWiki 5 itself, running on Node.js). It is inert when run under Node.js. Disabling this plugin via the browser can not be undone via the browser since this plugin provides the mechanism to synchronize settings with the server. +\define lingo-base() $:/plugins/tiddlywiki/tiddlyweb/language/ -Changes made while offline are saved in memory and automatically synchonised with the server when the connection is re-established. However, if the browser tab is closed or another URL is loaded, the in-memory changes will be lost. The [[https://tiddlywiki.com/#BrowserStorage Plugin]] may be added to provide temporary filesystem storage of tiddler changes made while offline and enable them to be synchronised with the server the next time the wiki is loaded in the same browser. - -[[Source code|https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/tiddlyweb]] +<> diff --git a/plugins/tiddlywiki/tiddlyweb/syncer-actions-copy-logs.tid b/plugins/tiddlywiki/tiddlyweb/syncer-actions-copy-logs.tid index b141670e6..6a8539028 100644 --- a/plugins/tiddlywiki/tiddlyweb/syncer-actions-copy-logs.tid +++ b/plugins/tiddlywiki/tiddlyweb/syncer-actions-copy-logs.tid @@ -1,6 +1,8 @@ title: $:/plugins/tiddlywiki/tiddlyweb/syncer-actions/copy-logs tags: $:/tags/SyncerDropdown +\define lingo-base() $:/plugins/tiddlywiki/tiddlyweb/language/ + <$button message="tm-copy-syncer-logs-to-clipboard" class="tc-btn-invisible"> -{{$:/core/images/copy-clipboard}} Copy syncer logs to clipboard +{{$:/core/images/copy-clipboard}} <> diff --git a/plugins/tiddlywiki/tiddlyweb/syncer-actions-login-status.tid b/plugins/tiddlywiki/tiddlyweb/syncer-actions-login-status.tid index 11816f1b4..ad95d1ab7 100644 --- a/plugins/tiddlywiki/tiddlyweb/syncer-actions-login-status.tid +++ b/plugins/tiddlywiki/tiddlyweb/syncer-actions-login-status.tid @@ -1,6 +1,8 @@ title: $:/plugins/tiddlywiki/tiddlyweb/syncer-actions/login-status tags: $:/tags/SyncerDropdown +\define lingo-base() $:/plugins/tiddlywiki/tiddlyweb/language/ + <$reveal state="$:/status/IsLoggedIn" type="match" text="yes">
You are logged in<$reveal state="$:/status/UserName" type="nomatch" text="" default=""> as <$text text={{$:/status/UserName}}/><$reveal state="$:/status/IsReadOnly" type="match" text="yes" default="no"> (read-only) diff --git a/plugins/tiddlywiki/tiddlyweb/syncer-actions-login.tid b/plugins/tiddlywiki/tiddlyweb/syncer-actions-login.tid index cdd95f5a6..27acdf5b6 100644 --- a/plugins/tiddlywiki/tiddlyweb/syncer-actions-login.tid +++ b/plugins/tiddlywiki/tiddlyweb/syncer-actions-login.tid @@ -1,6 +1,8 @@ title: $:/plugins/tiddlywiki/tiddlyweb/syncer-actions/login tags: $:/tags/SyncerDropdown +\define lingo-base() $:/plugins/tiddlywiki/tiddlyweb/language/ + <$reveal state="$:/status/IsLoggedIn" type="nomatch" text="yes"> <$button message="tm-login" class="tc-btn-invisible"> {{$:/core/images/unlocked-padlock}} Login diff --git a/plugins/tiddlywiki/tiddlyweb/syncer-actions-logout.tid b/plugins/tiddlywiki/tiddlyweb/syncer-actions-logout.tid index 358944d1a..57b32eb2c 100644 --- a/plugins/tiddlywiki/tiddlyweb/syncer-actions-logout.tid +++ b/plugins/tiddlywiki/tiddlyweb/syncer-actions-logout.tid @@ -1,6 +1,8 @@ title: $:/plugins/tiddlywiki/tiddlyweb/syncer-actions/logout tags: $:/tags/SyncerDropdown +\define lingo-base() $:/plugins/tiddlywiki/tiddlyweb/language/ + <$reveal state="$:/status/IsLoggedIn" type="match" text="yes"> <$button message="tm-logout" class="tc-btn-invisible"> {{$:/core/images/cancel-button}} Logout diff --git a/plugins/tiddlywiki/tiddlyweb/syncer-actions-refresh.tid b/plugins/tiddlywiki/tiddlyweb/syncer-actions-refresh.tid index c397badc5..e5798da62 100644 --- a/plugins/tiddlywiki/tiddlyweb/syncer-actions-refresh.tid +++ b/plugins/tiddlywiki/tiddlyweb/syncer-actions-refresh.tid @@ -1,6 +1,8 @@ title: $:/plugins/tiddlywiki/tiddlyweb/syncer-actions/refresh tags: $:/tags/SyncerDropdown +\define lingo-base() $:/plugins/tiddlywiki/tiddlyweb/language/ + <$reveal state="$:/status/IsLoggedIn" type="match" text="yes"> <$button tooltip="Get latest changes from the server" aria-label="Refresh from server" class="tc-btn-invisible"> <$action-sendmessage $message="tm-server-refresh"/> diff --git a/plugins/tiddlywiki/tiddlyweb/syncer-actions-save-snapshot.tid b/plugins/tiddlywiki/tiddlyweb/syncer-actions-save-snapshot.tid index 23bb4c914..a6cf986e4 100644 --- a/plugins/tiddlywiki/tiddlyweb/syncer-actions-save-snapshot.tid +++ b/plugins/tiddlywiki/tiddlyweb/syncer-actions-save-snapshot.tid @@ -1,6 +1,8 @@ title: $:/plugins/tiddlywiki/tiddlyweb/syncer-actions/save-snapshot tags: $:/tags/SyncerDropdown +\define lingo-base() $:/plugins/tiddlywiki/tiddlyweb/language/ + <$button class="tc-btn-invisible"> <$wikify name="site-title" text={{$:/config/SaveWikiButton/Filename}}> <$action-sendmessage $message="tm-download-file" $param={{$:/config/SaveWikiButton/Template}} filename=<>/>