Skip to content

Commit

Permalink
docs: translation for config title
Browse files Browse the repository at this point in the history
linonetwo committed Jan 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 1aeff68 commit a46da96
Showing 4 changed files with 13 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -35,9 +35,9 @@ title: $:/plugins/linonetwo/tw-gamification/ControlPanel/ConfigForDefaultEventGe
\end

;<<translate "ConfigDescription/EnableDefaultEventGenerator">>
:<$checkbox tiddler="$:/plugins/linonetwo/tw-gamification/configs/EnableDefaultEventGenerator" field="text" checked="yes" unchecked="no"> <<translate "ConfigDescription/EnableDefaultEventGenerator/Description">></$checkbox>
:<$checkbox tiddler="$:/plugins/linonetwo/tw-gamification/configs/EnableDefaultEventGenerator" field="text" checked="yes" unchecked="no"> <<translate "ConfigDescription/EnableDefaultEventGenerator/Description" mode:"inline">></$checkbox>

<<translate "ConfigDescription/DefaultEventGeneratorTagsForTask">>
!!! <<translate "ConfigDescription/DefaultEventGeneratorTagsForTask">>

<$let currentTiddler="$:/plugins/linonetwo/tw-gamification/configs/DefaultEventGeneratorTagsForTask">
<<single-text-tag-editor>>
25 changes: 7 additions & 18 deletions src/tw-gamification/configs/config.tid
Original file line number Diff line number Diff line change
@@ -1,26 +1,15 @@
title: $:/plugins/linonetwo/tw-gamification/config
tags: $:/tags/ControlPanel/SettingsTab
caption: Plugin Setting
caption: <<translate "Name" "$:/plugins/linonetwo/tw-gamification/language/" mode:"inline">>

These settings let you customise the behaviour of your plugin.
\define lingo-base() $:/plugins/linonetwo/tw-gamification/language/

<<translate "ConfigDescription">>

---

!! Title
!! <<translate "PluginConfigs" mode:"inline">>

Description
!! <<translate "DefaultEventGeneratorConfigs" mode:"inline">>

;Config name1
:<$checkbox tiddler="$:/plugins/linonetwo/tw-gamification/configs/xxx" field="text" checked="yes" unchecked=""> Description</$checkbox>
;Config name2
:<$select tiddler='$:/plugins/linonetwo/tw-gamification/configs/yyy'>
<option value='0'>Sunday</option>
<option value='1'>Monday</option>
<option value='2'>Tuesday</option>
<option value='3'>Wednesday</option>
<option value='4'>Thursday</option>
<option value='5'>Friday</option>
<option value='6'>Saturday</option>
</$select>
;Config name3
:<$edit-text tiddler="$:/plugins/linonetwo/tw-gamification/configs/zzz" tabindex=-1 focus=false cancelPopups="yes" fileDrop=no tag="input" />
{{$:/plugins/linonetwo/tw-gamification/ControlPanel/ConfigForDefaultEventGenerator}}
2 changes: 2 additions & 0 deletions src/tw-gamification/language/en-GB/Translations.multids
Original file line number Diff line number Diff line change
@@ -2,9 +2,11 @@ title: $:/plugins/linonetwo/tw-gamification/language/en-GB/

Name: TW Gamification
Description: Gameify all wiki activities. Earn exp and gold from completing TODOs! Motivate you with a second life in your wiki.
PluginConfigs: Plugin Configs
ConfigDescription: These settings let you customise the behaviour of TW Gamification plugin.
LanguageSwitcher: <$button set="$:/language" setTo="$:/languages/zh-Hans" style="">🇨🇳 切换至中文</$button>
GoToGameLayoutButton/Description: Enter Game Layout
DefaultEventGeneratorConfigs: Default Event Generator Configs
ConfigDescription/EnableDefaultEventGenerator: Enable Default Event Generator
ConfigDescription/EnableDefaultEventGenerator/Description: The event generator will convert some wiki actions into events for game to use. If you don't have any other plugins installed that provide an alternative event generator, you must enable this option in order to be able to get in-game rewards.
ConfigDescription/DefaultEventGeneratorTagsForTask: Set Tags For Task
2 changes: 2 additions & 0 deletions src/tw-gamification/language/zh-Hans/Translations.multids
Original file line number Diff line number Diff line change
@@ -2,9 +2,11 @@ title: $:/plugins/linonetwo/tw-gamification/language/zh-Hans/

Name: 游戏太微
Description: 游戏化你在知识库里的所有操作。通过完成待办事项赚取经验值和金币!通过你在知识库中的第二人生激励你真正的人生!
PluginConfigs: 插件设置
ConfigDescription: 通过这些设置,您可以自定义「游戏太微」插件的行为。
LanguageSwitcher: <$button set="$:/language" setTo="$:/languages/en-GB" style="">🇬🇧 Switch to English</$button>
GoToGameLayoutButton/Description: 进入游戏布局
DefaultEventGeneratorConfigs: 默认的事件生成器设置
ConfigDescription/EnableDefaultEventGenerator: 启用默认的事件生成器
ConfigDescription/EnableDefaultEventGenerator/Description: 事件生成器将把一些知识库操作转换为事件,以便在游戏中使用。如果你没有装其它提供事件生成器的插件,必须启用这个选项才能在获得游戏奖励。
ConfigDescription/DefaultEventGeneratorTagsForTask: 设置任务条目的标签

0 comments on commit a46da96

Please sign in to comment.