1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Update language flags to generic plugin icon convention

This commit is contained in:
Jermolene 2014-08-07 15:45:56 +01:00
parent 7953b95d13
commit e38f924eb5
9 changed files with 18 additions and 11 deletions

View File

@ -1,4 +1,4 @@
title: $:/language/Flag title: $:/languages/en-GB/icon
type: image/svg+xml type: image/svg+xml
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30" width="1200" height="600"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30" width="1200" height="600">

View File

@ -3,10 +3,15 @@ tags: $:/tags/PageControls
caption: {{$:/core/images/globe}} {{$:/language/Buttons/Language/Caption}} caption: {{$:/core/images/globe}} {{$:/language/Buttons/Language/Caption}}
description: {{$:/language/Buttons/Language/Hint}} 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"> <$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]]"> <$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
<span class="tw-image-button"> <span class="tw-image-button">
<$image source="$:/language/Flag"/> <$set name="languagePluginTitle" value={{$:/language}}>
<$image source=<<flag-title>>/>
</$set>
</span> </span>
</$list> </$list>
<$list filter="[<tw-config-toolbar-text>prefix[yes]]"> <$list filter="[<tw-config-toolbar-text>prefix[yes]]">
@ -27,11 +32,13 @@ description: {{$:/language/Buttons/Language/Hint}}
</$reveal> </$reveal>
</span> </span>
<span class="tw-image-button"> <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]]"> <$list filter="[all[current]field:title[$:/languages/en-GB]]">
<$transclude tiddler="$:/core" subtiddler="$:/language/Flag"/> <$transclude tiddler="$:/languages/en-GB/icon"/>
</$list> </$list>
</$transclude> </$transclude>
</$set>
</span> </span>
<$view field="description"> <$view field="description">
<$view field="name"> <$view field="name">

View File

@ -1,4 +1,4 @@
title: $:/language/Flag title: $:/languages/de-AT/icon
type: image/svg+xml type: image/svg+xml
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>

View File

@ -1,4 +1,4 @@
title: $:/language/Flag title: $:/languages/de-DE/icon
type: image/svg+xml type: image/svg+xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>

View File

@ -1,4 +1,4 @@
title: $:/language/Flag title: $:/languages/fr-FR/icon
type: image/svg+xml type: image/svg+xml
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>

View File

@ -1,4 +1,4 @@
title: $:/language/Flag title: $:/languages/it-IT/icon
type: image/svg+xml type: image/svg+xml
<?xml version="1.0" standalone="no"?> <?xml version="1.0" standalone="no"?>

View File

@ -1,4 +1,4 @@
title: $:/language/Flag title: $:/languages/ja-JP/icon
type: image/svg+xml type: image/svg+xml
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>

View File

@ -1,4 +1,4 @@
title: $:/language/Flag title: $:/languages/zh-Hans/icon
type: image/svg+xml type: image/svg+xml
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>

View File

@ -1,4 +1,4 @@
title: $:/language/Flag title: $:/languages/zh-Hant/icon
type: image/svg+xml type: image/svg+xml
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>