mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +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>
|
||||
|
||||
<$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>
|
||||
</$linkcatcher>
|
@ -1,6 +1,6 @@
|
||||
title: $:/snippets/minilanguageswitcher
|
||||
|
||||
<$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>
|
||||
</$linkcatcher>
|
@ -4,6 +4,5 @@
|
||||
"plugin-type": "language",
|
||||
"description": "German (Austria)",
|
||||
"author": "JeremyRuston",
|
||||
"core-version": ">=5.0.0",
|
||||
"dependents": ["$:/languages/en-GB"]
|
||||
"core-version": ">=5.0.0"
|
||||
}
|
||||
|
@ -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",
|
||||
"description": "English (US)",
|
||||
"author": "JeremyRuston",
|
||||
"core-version": ">=5.0.0",
|
||||
"dependents": ["$:/languages/en-GB"]
|
||||
"core-version": ">=5.0.0"
|
||||
}
|
||||
|
@ -4,6 +4,5 @@
|
||||
"plugin-type": "language",
|
||||
"description": "French (France)",
|
||||
"author": "JeremyRuston",
|
||||
"core-version": ">=5.0.0",
|
||||
"dependents": ["$:/languages/en-GB"]
|
||||
"core-version": ">=5.0.0"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user