Skip to content

Commit

Permalink
refactor: update translation of tiddlyweb
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Feb 6, 2024
1 parent aaf3182 commit f3eefa6
Show file tree
Hide file tree
Showing 15 changed files with 71 additions and 18 deletions.
15 changes: 3 additions & 12 deletions plugins/tiddlywiki/tiddlyweb/GettingStarted.tid
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
title: GettingStarted
tags: $:/tags/GettingStarted
caption: Step 1<br>Syncing
caption: <<lingo GettingStartedStep1 "$:/plugins/tiddlywiki/tiddlyweb/language/">>

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
<<lingo GettingStarted>>
4 changes: 3 additions & 1 deletion plugins/tiddlywiki/tiddlyweb/configOfficialPluginLibrary.tid
Original file line number Diff line number Diff line change
Expand Up @@ -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]].
\define lingo-base() $:/plugins/tiddlywiki/tiddlyweb/language/

<<lingo ConfigOfficialPluginLibrary>>
14 changes: 14 additions & 0 deletions plugins/tiddlywiki/tiddlyweb/language/en-GB/GettingStarted.tid
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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<br>Syncing
CopySyncerLogs: Copy syncer logs to clipboard
7 changes: 7 additions & 0 deletions plugins/tiddlywiki/tiddlyweb/language/en-GB/readme.tid
Original file line number Diff line number Diff line change
@@ -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]]
14 changes: 14 additions & 0 deletions plugins/tiddlywiki/tiddlyweb/language/zh-Hans/GettingStarted.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
title: $:/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/GettingStarted

欢迎来到太微和太微社区

访问 https://tiddlywiki.com/ 了解太微的细节和了解它能做什么。

! 同步更改到服务器

在你开始在太微中存储重要信息之前,确保你的修改被服务器可靠地保存是非常重要的。

# 使用右侧边栏的 {{$:/core/images/new-button}} 按钮创建一个新条目
# 点击新条目右上方的 {{$:/core/images/done-button}} 按钮
# 检查太微命令行是否有确认条目已保存的信息
# 刷新浏览器页面,确认新条目已正确保存
Original file line number Diff line number Diff line change
@@ -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" 文件安装插件。
7 changes: 7 additions & 0 deletions plugins/tiddlywiki/tiddlyweb/language/zh-Hans/readme.tid
Original file line number Diff line number Diff line change
@@ -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]]
6 changes: 2 additions & 4 deletions plugins/tiddlywiki/tiddlyweb/readme.tid
Original file line number Diff line number Diff line change
@@ -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]]
<<lingo readme>>
4 changes: 3 additions & 1 deletion plugins/tiddlywiki/tiddlyweb/syncer-actions-copy-logs.tid
Original file line number Diff line number Diff line change
@@ -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}} <<lingo CopySyncerLogs>>
</$button>
2 changes: 2 additions & 0 deletions plugins/tiddlywiki/tiddlyweb/syncer-actions-login-status.tid
Original file line number Diff line number Diff line change
@@ -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">
<div class="tc-drop-down-info">
You are logged in<$reveal state="$:/status/UserName" type="nomatch" text="" default=""> as <strong><$text text={{$:/status/UserName}}/></strong></$reveal><$reveal state="$:/status/IsReadOnly" type="match" text="yes" default="no"> (read-only)</$reveal>
Expand Down
2 changes: 2 additions & 0 deletions plugins/tiddlywiki/tiddlyweb/syncer-actions-login.tid
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions plugins/tiddlywiki/tiddlyweb/syncer-actions-logout.tid
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions plugins/tiddlywiki/tiddlyweb/syncer-actions-refresh.tid
Original file line number Diff line number Diff line change
@@ -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"/>
Expand Down
2 changes: 2 additions & 0 deletions plugins/tiddlywiki/tiddlyweb/syncer-actions-save-snapshot.tid
Original file line number Diff line number Diff line change
@@ -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=<<site-title>>/>
Expand Down

0 comments on commit f3eefa6

Please sign in to comment.