1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 01:20:30 +00:00

Sort language switcher by description

Thanks @BramChen
This commit is contained in:
Jermolene 2014-12-06 15:55:28 +00:00
parent ab129a620e
commit 957a8608ad

View File

@ -1,7 +1,7 @@
title: $:/snippets/languageswitcher title: $:/snippets/languageswitcher
{{$:/language/ControlPanel/Basics/Language/Prompt}} <$select tiddler="$:/language"> {{$:/language/ControlPanel/Basics/Language/Prompt}} <$select tiddler="$:/language">
<$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[title]]"> <$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[description]]">
<option value=<<currentTiddler>>><$view field="description"><$view field="name"><$view field="title"/></$view></$view></option> <option value=<<currentTiddler>>><$view field="description"><$view field="name"><$view field="title"/></$view></$view></option>
</$list> </$list>
</$select> </$select>