mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Update language flags to generic plugin icon convention
This commit is contained in:
parent
7953b95d13
commit
e38f924eb5
@ -1,4 +1,4 @@
|
||||
title: $:/language/Flag
|
||||
title: $:/languages/en-GB/icon
|
||||
type: image/svg+xml
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30" width="1200" height="600">
|
@ -3,10 +3,15 @@ tags: $:/tags/PageControls
|
||||
caption: {{$:/core/images/globe}} {{$:/language/Buttons/Language/Caption}}
|
||||
description: {{$:/language/Buttons/Language/Hint}}
|
||||
|
||||
\define flag-title()
|
||||
$(languagePluginTitle)$/icon
|
||||
\end
|
||||
<$button popup=<<qualify "$:/state/popup/language">> title={{$:/language/Buttons/Language/Hint}} aria-label={{$:/language/Buttons/Language/Caption}} class=<<tw-config-toolbar-class>> selectedClass="tw-selected">
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
<span class="tw-image-button">
|
||||
<$image source="$:/language/Flag"/>
|
||||
<$set name="languagePluginTitle" value={{$:/language}}>
|
||||
<$image source=<<flag-title>>/>
|
||||
</$set>
|
||||
</span>
|
||||
</$list>
|
||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
||||
@ -27,11 +32,13 @@ description: {{$:/language/Buttons/Language/Hint}}
|
||||
</$reveal>
|
||||
</span>
|
||||
<span class="tw-image-button">
|
||||
<$transclude subtiddler="$:/language/Flag">
|
||||
<$set name="languagePluginTitle" value=<<currentTiddler>>>
|
||||
<$transclude subtiddler=<<flag-title>>>
|
||||
<$list filter="[all[current]field:title[$:/languages/en-GB]]">
|
||||
<$transclude tiddler="$:/core" subtiddler="$:/language/Flag"/>
|
||||
<$transclude tiddler="$:/languages/en-GB/icon"/>
|
||||
</$list>
|
||||
</$transclude>
|
||||
</$set>
|
||||
</span>
|
||||
<$view field="description">
|
||||
<$view field="name">
|
||||
|
@ -1,4 +1,4 @@
|
||||
title: $:/language/Flag
|
||||
title: $:/languages/de-AT/icon
|
||||
type: image/svg+xml
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
@ -1,4 +1,4 @@
|
||||
title: $:/language/Flag
|
||||
title: $:/languages/de-DE/icon
|
||||
type: image/svg+xml
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
@ -1,4 +1,4 @@
|
||||
title: $:/language/Flag
|
||||
title: $:/languages/fr-FR/icon
|
||||
type: image/svg+xml
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
@ -1,4 +1,4 @@
|
||||
title: $:/language/Flag
|
||||
title: $:/languages/it-IT/icon
|
||||
type: image/svg+xml
|
||||
|
||||
<?xml version="1.0" standalone="no"?>
|
@ -1,4 +1,4 @@
|
||||
title: $:/language/Flag
|
||||
title: $:/languages/ja-JP/icon
|
||||
type: image/svg+xml
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
@ -1,4 +1,4 @@
|
||||
title: $:/language/Flag
|
||||
title: $:/languages/zh-Hans/icon
|
||||
type: image/svg+xml
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
@ -1,4 +1,4 @@
|
||||
title: $:/language/Flag
|
||||
title: $:/languages/zh-Hant/icon
|
||||
type: image/svg+xml
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
Loading…
Reference in New Issue
Block a user