From 2579d7f59a4a40fa72d7db11aefdc5d0cfe456d1 Mon Sep 17 00:00:00 2001 From: linonetwo Date: Tue, 6 Feb 2024 21:36:51 +0800 Subject: [PATCH] i18n: add more l10n --- .../language/en-GB/Translations.multids | 2 ++ .../language/zh-Hans/Translations.multids | 2 ++ .../tiddlyweb/syncer-actions-refresh.tid | 22 ++++++++++++------- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/plugins/tiddlywiki/tiddlyweb/language/en-GB/Translations.multids b/plugins/tiddlywiki/tiddlyweb/language/en-GB/Translations.multids index 5d56a137e..c03684ad7 100644 --- a/plugins/tiddlywiki/tiddlyweb/language/en-GB/Translations.multids +++ b/plugins/tiddlywiki/tiddlyweb/language/en-GB/Translations.multids @@ -8,3 +8,5 @@ Readonly: <$reveal state="$:/status/IsReadOnly" type="match" text="yes" default= Login: Login Logout: Logout SaveSnapshot: Save snapshot for offline use +Refresh/Label: Refresh from server +Refresh/Button: Get latest changes from the server \ No newline at end of file diff --git a/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/Translations.multids b/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/Translations.multids index 0c2b489d4..142e872c4 100644 --- a/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/Translations.multids +++ b/plugins/tiddlywiki/tiddlyweb/language/zh-Hans/Translations.multids @@ -8,3 +8,5 @@ Readonly: <$reveal state="$:/status/IsReadOnly" type="match" text="yes" default= Login: 登录 Logout: 登出 SaveSnapshot: 保存快照以供离线使用 +Refresh/Label: 从服务器刷新 +Refresh/Button: 从服务器获取最新变更 \ No newline at end of file diff --git a/plugins/tiddlywiki/tiddlyweb/syncer-actions-refresh.tid b/plugins/tiddlywiki/tiddlyweb/syncer-actions-refresh.tid index e5798da62..2cb2ffd82 100644 --- a/plugins/tiddlywiki/tiddlyweb/syncer-actions-refresh.tid +++ b/plugins/tiddlywiki/tiddlyweb/syncer-actions-refresh.tid @@ -1,11 +1,17 @@ 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"/> -{{$:/core/images/refresh-button}}<$text text="Get latest changes from the server"/> - - +\whitespace trim +<$let lingo-base="$:/plugins/tiddlywiki/tiddlyweb/language/"> + <$wikify name=buttonText text="<>"> + <$wikify name=ariaLabel text="<>"> + <$reveal state="$:/status/IsLoggedIn" type="match" text="yes"> + <$button tooltip=<> aria-label=<> class="tc-btn-invisible"> + <$action-sendmessage $message="tm-server-refresh"/> + {{$:/core/images/refresh-button}} + <> + + + + +