1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-24 02:27:19 +00:00

Merge pull request #1668 from BramChen/master

Improve chinese editions
This commit is contained in:
Jeremy Ruston 2015-04-21 22:18:00 +01:00
commit 734d815c9d
6 changed files with 58 additions and 4 deletions

View File

@ -0,0 +1,6 @@
title: $:/editions/zh-Hans/snippets/download-empty-button
<$button class="tc-btn-big-green">
<$action-sendmessage $message="tm-download-file" $param="$:/editions/zh-Hant/download-empty" filename="empty.zh-Hans.html"/>
简体中文版 {{$:/core/images/save-button}}
</$button>

View File

@ -0,0 +1,9 @@
title: $:/editions/zh-Hans/download-empty
\define saveTiddlerFilter()
[[$:/core]] [[$:/isEncrypted]] [[$:/language]] [[$:/languages/zh-Hans]] [[$:/themes/tiddlywiki/snowwhite]] [[$:/themes/tiddlywiki/vanilla]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]]
\end
\define savingEmpty()
yes
\end
{{$:/core/templates/tiddlywiki5.html}}

View File

@ -5,7 +5,6 @@
"themes": [ "themes": [
"tiddlywiki/vanilla", "tiddlywiki/vanilla",
"tiddlywiki/snowwhite", "tiddlywiki/snowwhite",
"tiddlywiki/nighttime",
"tiddlywiki/starlight", "tiddlywiki/starlight",
"tiddlywiki/seamless", "tiddlywiki/seamless",
"tiddlywiki/centralised", "tiddlywiki/centralised",
@ -14,8 +13,21 @@
"languages": [ "languages": [
"zh-Hans" "zh-Hans"
], ],
"includeWikis": [
{"path": "../tw5.com", "read-only": true}
],
"build": { "build": {
"index": [ "index": [
"--rendertiddler","$:/core/save/all","zh-hans-demo.html","text/plain"] "--rendertiddler","$:/core/save/all","index.html","text/plain"],
"empty": [
"--rendertiddler","$:/editions/zh-Hans/download-empty","empty.html","text/plain",
"--rendertiddler","$:/editions/zh-Hans/download-empty","empty.hta","text/plain"],
"favicon": [
"--savetiddler","$:/favicon.ico","favicon.ico"],
"static": [
"--rendertiddler","$:/core/templates/static.template.html","static.html","text/plain",
"--rendertiddler","$:/core/templates/alltiddlers.template.html","alltiddlers.html","text/plain",
"--rendertiddlers","[!is[system]]","$:/core/templates/static.tiddler.html","static","text/plain",
"--rendertiddler","$:/core/templates/static.template.css","static/static.css","text/plain"]
} }
} }

View File

@ -0,0 +1,6 @@
title: $:/editions/zh-Hant/snippets/download-empty-button
<$button class="tc-btn-big-green">
<$action-sendmessage $message="tm-download-file" $param="$:/editions/zh-Hant/download-empty" filename="empty.zh-Hant.html"/>
繁體中文版 {{$:/core/images/save-button}}
</$button>

View File

@ -0,0 +1,9 @@
title: $:/editions/zh-Hant/download-empty
\define saveTiddlerFilter()
[[$:/core]] [[$:/isEncrypted]] [[$:/language]] [[$:/languages/zh-Hant]] [[$:/themes/tiddlywiki/snowwhite]] [[$:/themes/tiddlywiki/vanilla]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]]
\end
\define savingEmpty()
yes
\end
{{$:/core/templates/tiddlywiki5.html}}

View File

@ -5,7 +5,6 @@
"themes": [ "themes": [
"tiddlywiki/vanilla", "tiddlywiki/vanilla",
"tiddlywiki/snowwhite", "tiddlywiki/snowwhite",
"tiddlywiki/nighttime",
"tiddlywiki/starlight", "tiddlywiki/starlight",
"tiddlywiki/seamless", "tiddlywiki/seamless",
"tiddlywiki/centralised", "tiddlywiki/centralised",
@ -14,8 +13,21 @@
"languages": [ "languages": [
"zh-Hant" "zh-Hant"
], ],
"includeWikis": [
{"path": "../tw5.com", "read-only": true}
],
"build": { "build": {
"index": [ "index": [
"--rendertiddler","$:/core/save/all","zh-hant-demo.html","text/plain"] "--rendertiddler","$:/core/save/all","index.html","text/plain"],
"empty": [
"--rendertiddler","$:/editions/zh-Hant/download-empty","empty.html","text/plain",
"--rendertiddler","$:/editions/zh-Hant/download-empty","empty.hta","text/plain"],
"favicon": [
"--savetiddler","$:/favicon.ico","favicon.ico"],
"static": [
"--rendertiddler","$:/core/templates/static.template.html","static.html","text/plain",
"--rendertiddler","$:/core/templates/alltiddlers.template.html","alltiddlers.html","text/plain",
"--rendertiddlers","[!is[system]]","$:/core/templates/static.tiddler.html","static","text/plain",
"--rendertiddler","$:/core/templates/static.template.css","static/static.css","text/plain"]
} }
} }