From e0038891710600a96f7956444dcedd30594e734d Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 9 Feb 2014 20:34:58 +0000 Subject: [PATCH] Start translating the control panel --- core/ui/ControlPanel/Basics.tid | 25 +++++++++++++------------ core/ui/PageMacros.tid | 6 ++++++ languages/de-AT/plugin.info | 3 ++- languages/en-GB/ControlPanel.tids | 17 +++++++++++++++++ languages/fr-FR/plugin.info | 3 ++- 5 files changed, 40 insertions(+), 14 deletions(-) create mode 100644 languages/en-GB/ControlPanel.tids diff --git a/core/ui/ControlPanel/Basics.tid b/core/ui/ControlPanel/Basics.tid index ef7e1872d..f513604c4 100644 --- a/core/ui/ControlPanel/Basics.tid +++ b/core/ui/ControlPanel/Basics.tid @@ -1,16 +1,17 @@ title: $:/core/ui/ControlPanel/Basics tags: $:/tags/ControlPanel -caption: Basics +caption: {{$:/lingo/ControlPanel/Basics/Caption}} -|TiddlyWiki version |''<>'' | -|[[Title of this TiddlyWiki|SiteTitle]] |<$edit-text tiddler="SiteTitle" default="" tag="input"/> | -|[[Subtitle|SiteSubtitle]] |<$edit-text tiddler="SiteSubtitle" default="" tag="input"/> | -|[[Username for signing edits|$:/status/UserName]] |<$edit-text tiddler="$:/status/UserName" default="" tag="input"/> | -|[[Animation duration|$:/config/AnimationDuration]] |<$edit-text tiddler="$:/config/AnimationDuration" default="" tag="input"/> | -|[[DefaultTiddlers|$:/DefaultTiddlers]] |Choose which tiddlers are displayed at startup:
<$edit-text tag="textarea" tiddler="$:/DefaultTiddlers"/>
//Use [[double square brackets]] for titles with spaces. Or you can choose to <$button set="$:/DefaultTiddlers" setTo="[list[$:/StoryList]]">retain story ordering// | +\define lingo-base() $:/lingo/ControlPanel/ +|<> |''<>'' | +|<$link to="SiteTitle"><> |<$edit-text tiddler="SiteTitle" default="" tag="input"/> | +|<$link to="SiteSubtitle"><> |<$edit-text tiddler="SiteSubtitle" default="" tag="input"/> | +|<$link to="$:/status/UserName"><> |<$edit-text tiddler="$:/status/UserName" default="" tag="input"/> | +|<$link to="$:/config/AnimationDuration"><> |<$edit-text tiddler="$:/config/AnimationDuration" default="" tag="input"/> | +|<$link to="$:/DefaultTiddlers"><> |<>
<$edit-text tag="textarea" tiddler="$:/DefaultTiddlers"/>
//<>// | |{{$:/lingo/ControlPanel/Language/prompt}} |{{$:/snippets/minilanguageswitcher}} | -|Tiddlers |''<$count filter="[!is[system]]"/>'' | -|Tags |''<$count filter="[tags[]]"/>'' | -|System tiddlers |''<$count filter="[is[system]]"/>'' | -|Shadow tiddlers |''<$count filter="[is[shadow]]"/>'' | -|Overridden shadow tiddlers |''<$count filter="[!is[system]is[shadow]]"/>'' | +|<> |''<$count filter="[!is[system]]"/>'' | +|<> |''<$count filter="[tags[]]"/>'' | +|<> |''<$count filter="[is[system]]"/>'' | +|<> |''<$count filter="[is[shadow]]"/>'' | +|<> |''<$count filter="[!is[system]is[shadow]]"/>'' | diff --git a/core/ui/PageMacros.tid b/core/ui/PageMacros.tid index 65b498ada..eda188650 100644 --- a/core/ui/PageMacros.tid +++ b/core/ui/PageMacros.tid @@ -29,5 +29,11 @@ $$$text/vnd.tiddlywiki>text/html $src$ $$$ +\end +\define lingo-base() +$:/lingo/ +\end +\define lingo(title) +{{$(lingo-base)$$title$}} \end {{$:/core/ui/PageTemplate}} diff --git a/languages/de-AT/plugin.info b/languages/de-AT/plugin.info index f6cc51a66..cd7f1d802 100644 --- a/languages/de-AT/plugin.info +++ b/languages/de-AT/plugin.info @@ -4,5 +4,6 @@ "plugin-type": "language", "description": "German (Austria)", "author": "JeremyRuston", - "core-version": ">=5.0.0" + "core-version": ">=5.0.0", + "dependents": ["$:/languages/en-GB"] } diff --git a/languages/en-GB/ControlPanel.tids b/languages/en-GB/ControlPanel.tids new file mode 100644 index 000000000..246418d85 --- /dev/null +++ b/languages/en-GB/ControlPanel.tids @@ -0,0 +1,17 @@ +title: $:/lingo/ControlPanel/ + +Basics/Caption: Basics +Basics/Version: ~TiddlyWiki version +Basics/Title: Title of this ~TiddlyWiki +Basics/Subtitle: Subtitle +Basics/Username: Username for signing edits +Basics/AnimDuration: Animation duration +Basics/DefaultTiddlers: Default tiddlers +Basics/DefaultTiddlers/Prompt: Choose which tiddlers are displayed at startup: +Basics/DefaultTiddlers/Hint: Use [[double square brackets]] for titles with spaces. Or you can choose to <$button set="$:/DefaultTiddlers" setTo="[list[$:/StoryList]]">retain story ordering +Basics/Tiddlers: Number of tiddlers +Basics/Tags: Number of tags +Basics/SystemTiddlers: Number of system tiddlers +Basics/ShadowTiddlers: Number of shadow tiddlers +Basics/OverriddenShadowTiddlers: Number of overridden shadow tiddlers +Appearance/Caption: Appearance diff --git a/languages/fr-FR/plugin.info b/languages/fr-FR/plugin.info index 8a91fc7f4..4631f78ac 100644 --- a/languages/fr-FR/plugin.info +++ b/languages/fr-FR/plugin.info @@ -4,5 +4,6 @@ "plugin-type": "language", "description": "French (France)", "author": "JeremyRuston", - "core-version": ">=5.0.0" + "core-version": ">=5.0.0", + "dependents": ["$:/languages/en-GB"] }