mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +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:
parent
441d9078fa
commit
daa79a8612
7
core/language/en-GB.tid
Normal file
7
core/language/en-GB.tid
Normal 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
|
@ -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}}>•</$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 filter="[[$:/languages/en-GB]] [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>
|
</$list>
|
||||||
</$linkcatcher>
|
</$linkcatcher>
|
@ -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}}>•</$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 filter="[[$:/languages/en-GB]] [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>
|
</$list>
|
||||||
</$linkcatcher>
|
</$linkcatcher>
|
@ -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"]
|
|
||||||
}
|
}
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"title": "$:/languages/en-GB",
|
|
||||||
"name": "en-GB",
|
|
||||||
"plugin-type": "language",
|
|
||||||
"description": "English (British)",
|
|
||||||
"author": "JeremyRuston",
|
|
||||||
"core-version": ">=5.0.0"
|
|
||||||
}
|
|
@ -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"]
|
|
||||||
}
|
}
|
||||||
|
@ -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"]
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user