mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-25 02:56:43 +00:00
![Jermolene](/assets/img/avatar_default.png)
Still quite a few details to work out, but this shows the basic idea of re-using the theme mechanism to handle language plugins. Comments and questions welcome.
8 lines
709 B
Plaintext
8 lines
709 B
Plaintext
title: $:/snippets/languageswitcher
|
|
|
|
{{$:/lingo/ControlPanel/Language/prompt}} <$view tiddler={{$:/language}} field="description" format="text"><$view tiddler={{$:/language}} field="name" format="text"><$view tiddler={{$:/language}} field="title" format="text"/></$view></$view>
|
|
|
|
<$linkcatcher to="$:/language">
|
|
<$list filter="[plugin-type[language]sort[title]]"><div><$reveal state="$:/language" type="match" text={{!!title}}>•</$reveal><$reveal state="$:/language" type="nomatch" text={{!!title}}> </$reveal> <$link to={{!!title}}><$view field="description" format="text"><$view field="name" format="text"><$view field="title" format="text"/></$view></$view></$link></div>
|
|
</$list>
|
|
</$linkcatcher> |