2014-07-31 17:07:37 +00:00
|
|
|
title: $:/core/ui/Buttons/language
|
|
|
|
tags: $:/tags/PageControls
|
|
|
|
caption: {{$:/core/images/globe}} {{$:/language/Buttons/Language/Caption}}
|
|
|
|
description: {{$:/language/Buttons/Language/Hint}}
|
|
|
|
|
2014-08-07 14:45:56 +00:00
|
|
|
\define flag-title()
|
|
|
|
$(languagePluginTitle)$/icon
|
|
|
|
\end
|
2014-09-10 09:25:50 +00:00
|
|
|
<$button popup=<<qualify "$:/state/popup/language">> tooltip={{$:/language/Buttons/Language/Hint}} aria-label={{$:/language/Buttons/Language/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
|
2014-08-28 21:28:02 +00:00
|
|
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
2014-08-28 16:47:43 +00:00
|
|
|
<span class="tc-image-button">
|
2014-08-07 14:45:56 +00:00
|
|
|
<$set name="languagePluginTitle" value={{$:/language}}>
|
|
|
|
<$image source=<<flag-title>>/>
|
|
|
|
</$set>
|
2014-08-02 10:58:55 +00:00
|
|
|
</span>
|
2014-07-31 17:07:37 +00:00
|
|
|
</$list>
|
2014-08-28 21:28:02 +00:00
|
|
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
2014-10-11 14:26:51 +00:00
|
|
|
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Language/Caption}}/></span>
|
2014-07-31 17:07:37 +00:00
|
|
|
</$list>
|
|
|
|
</$button>
|
|
|
|
<$reveal state=<<qualify "$:/state/popup/language">> type="popup" position="below" animate="yes">
|
2014-08-28 17:21:08 +00:00
|
|
|
<div class="tc-drop-down">
|
2014-07-31 17:07:37 +00:00
|
|
|
<$linkcatcher to="$:/language">
|
|
|
|
<$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[title]]">
|
|
|
|
<$link>
|
2014-08-28 17:21:08 +00:00
|
|
|
<span class="tc-drop-down-bullet">
|
2014-08-01 15:52:24 +00:00
|
|
|
<$reveal type="match" state="$:/language" text=<<currentTiddler>>>
|
|
|
|
•
|
|
|
|
</$reveal>
|
|
|
|
<$reveal type="nomatch" state="$:/language" text=<<currentTiddler>>>
|
|
|
|
|
|
|
|
</$reveal>
|
2014-08-01 21:07:07 +00:00
|
|
|
</span>
|
2014-08-28 16:47:43 +00:00
|
|
|
<span class="tc-image-button">
|
2014-08-07 14:45:56 +00:00
|
|
|
<$set name="languagePluginTitle" value=<<currentTiddler>>>
|
|
|
|
<$transclude subtiddler=<<flag-title>>>
|
2014-07-31 17:07:37 +00:00
|
|
|
<$list filter="[all[current]field:title[$:/languages/en-GB]]">
|
2014-08-07 14:45:56 +00:00
|
|
|
<$transclude tiddler="$:/languages/en-GB/icon"/>
|
2014-07-31 17:07:37 +00:00
|
|
|
</$list>
|
|
|
|
</$transclude>
|
2014-08-07 14:45:56 +00:00
|
|
|
</$set>
|
2014-08-02 10:58:55 +00:00
|
|
|
</span>
|
2014-07-31 17:07:37 +00:00
|
|
|
<$view field="description">
|
|
|
|
<$view field="name">
|
|
|
|
<$view field="title"/>
|
|
|
|
</$view>
|
|
|
|
</$view>
|
|
|
|
</$link>
|
|
|
|
</$list>
|
|
|
|
</$linkcatcher>
|
|
|
|
</div>
|
|
|
|
</$reveal>
|