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

Move the en-GB language plugin into the core

We need to have the default language baked into the core so that we
don’t have problems if no language plugins are available.
This commit is contained in:
Jermolene 2014-02-11 13:20:17 +00:00
parent 441d9078fa
commit daa79a8612
9 changed files with 12 additions and 16 deletions

7
core/language/en-GB.tid Normal file
View File

@ -0,0 +1,7 @@
title: $:/languages/en-GB
name: en-GB
description: English (British)
author: JeremyRuston
core-version: >=5.0.0"
Stub pseudo-plugin for the default language

View File

@ -3,6 +3,6 @@ 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> {{$:/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"> <$linkcatcher to="$:/language">
<$list filter="[plugin-type[language]sort[title]]"><div><$reveal state="$:/language" type="match" text={{!!title}}>&bull;</$reveal><$reveal state="$:/language" type="nomatch" text={{!!title}}>&nbsp;</$reveal> <$link to={{!!title}}><$view field="description" format="text"><$view field="name" format="text"><$view field="title" format="text"/></$view></$view></$link></div> <$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[title]]"><div><$reveal state="$:/language" type="match" text={{!!title}}>&bull;</$reveal><$reveal state="$:/language" type="nomatch" text={{!!title}}>&nbsp;</$reveal> <$link to={{!!title}}><$view field="description" format="text"><$view field="name" format="text"><$view field="title" format="text"/></$view></$view></$link></div>
</$list> </$list>
</$linkcatcher> </$linkcatcher>

View File

@ -1,6 +1,6 @@
title: $:/snippets/minilanguageswitcher title: $:/snippets/minilanguageswitcher
<$linkcatcher to="$:/language"> <$linkcatcher to="$:/language">
<$list filter="[plugin-type[language]sort[title]]"><div><$reveal state="$:/language" type="match" text={{!!title}}>&bull;</$reveal><$reveal state="$:/language" type="nomatch" text={{!!title}}>&nbsp;</$reveal> <$link to={{!!title}}><$view field="description" format="text"><$view field="name" format="text"><$view field="title" format="text"/></$view></$view></$link></div> <$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[title]]"><div><$reveal state="$:/language" type="match" text={{!!title}}>&bull;</$reveal><$reveal state="$:/language" type="nomatch" text={{!!title}}>&nbsp;</$reveal> <$link to={{!!title}}><$view field="description" format="text"><$view field="name" format="text"><$view field="title" format="text"/></$view></$view></$link></div>
</$list> </$list>
</$linkcatcher> </$linkcatcher>

View File

@ -4,6 +4,5 @@
"plugin-type": "language", "plugin-type": "language",
"description": "German (Austria)", "description": "German (Austria)",
"author": "JeremyRuston", "author": "JeremyRuston",
"core-version": ">=5.0.0", "core-version": ">=5.0.0"
"dependents": ["$:/languages/en-GB"]
} }

View File

@ -1,8 +0,0 @@
{
"title": "$:/languages/en-GB",
"name": "en-GB",
"plugin-type": "language",
"description": "English (British)",
"author": "JeremyRuston",
"core-version": ">=5.0.0"
}

View File

@ -4,6 +4,5 @@
"plugin-type": "language", "plugin-type": "language",
"description": "English (US)", "description": "English (US)",
"author": "JeremyRuston", "author": "JeremyRuston",
"core-version": ">=5.0.0", "core-version": ">=5.0.0"
"dependents": ["$:/languages/en-GB"]
} }

View File

@ -4,6 +4,5 @@
"plugin-type": "language", "plugin-type": "language",
"description": "French (France)", "description": "French (France)",
"author": "JeremyRuston", "author": "JeremyRuston",
"core-version": ">=5.0.0", "core-version": ">=5.0.0"
"dependents": ["$:/languages/en-GB"]
} }