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.
print-window-tiddler
Jermolene 2014-02-11 13:20:17 +00:00
rodzic 441d9078fa
commit daa79a8612
9 zmienionych plików z 12 dodań i 16 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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}}>&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>
</$linkcatcher>

Wyświetl plik

@ -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}}>&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>
</$linkcatcher>

Wyświetl plik

@ -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"
}

Wyświetl plik

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

Wyświetl plik

@ -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"
}

Wyświetl plik

@ -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"
}