Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions editions/tw5.com/tiddlers/_tw_shared/detect-language.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
title: $:/editions/tw5.com/detect-language
tags: $:/tags/StartupAction/Browser

\function lang.match(lang) [{$:/info/browser/language}match<lang>]

<%if [{$:/info/browser/language}match[zh-CN]] :or[{$:/info/browser/language}match[zh-Hans]] %>
<$action-setfield $tiddler="$:/temp/language" text="zh-Hans"/>
<%elseif [{$:/info/browser/language}match[zh-TW]] :or[{$:/info/browser/language}match[zh-Hant]] %>
<$action-setfield $tiddler="$:/temp/language" text="zh-Hant"/>
<%elseif [{$:/info/browser/language}perfix[es-]] %>
<$action-setfield $tiddler="$:/temp/language" text="es-ES"/>
<%elseif [lang.match[de-DE]] [lang.match[de-AT]] [lang.match[pl-PL]] [lang.match[el-GR]] [lang.match[fr-FR]] [lang.match[ja-JP]] [lang.match[ko-KR]] [lang.match[en-GB]] [lang.match[en-US]] [lang.match[en-PH]] %>
<$action-setfield $tiddler="$:/temp/language" text=<<condition>>/>
<%else%>
<$action-setfield $tiddler="$:/temp/language" text="unsupported"/>
<%endif%>
20 changes: 20 additions & 0 deletions editions/tw5.com/tiddlers/gettingstarted/GettingStarted.tid
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,26 @@ The easiest way to use ~TiddlyWiki is to sign up for a free account with [[Tiddl

Click here to download an empty copy of ~TiddlyWiki: {{$:/editions/tw5.com/snippets/download-empty-button}}

Language:
<$select tiddler="$:/temp/language" default="en-GB">
<option value="de-DE">Deutsch (Deutschland)</option>
<option value="de-AT">Deutsch (Österreich)</option>
<option value="el-GR">Ελληνικά (Ελλάδα)</option>
<option value="en-GB">English (British)</option>
<option value="en-US">English (US)</option>
<option value="en-PH">English (Philippines)</option>
<option value="es-ES">Castellano. (España)</option>
<option value="fr-FR">Français (France)</option>
<option value="ja-JP">日本語 (日本)</option>
<option value="ko-KR">한국어 (대한민국)</option>
<option value="pl-PL">Polski (Polska)</option>
<option value="zh-Hans">简体中文</option>
<option value="zh-Hant">繁體中文</option>
<option value="unsupported" disabled>Unsupported</option>
</$select>

<$transclude $tiddler=`Language ${ [{$:/temp/language}] }$` />

The next step is to choose a method for saving changes. There's a wide variety of methods available, with different features and limitations. Click on the badge for a method to see more information about it. You can also click on one of the platform filters to restrict the listing to methods that work with that platform.

<<.warning "Don't attempt to use the browser ''File''/''Save'' menu option to save changes (it doesn't work)">><br/><br/>
Expand Down
4 changes: 4 additions & 0 deletions editions/tw5.com/tiddlers/languages/Language de-AT.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: Language de-AT

<!-- TODO: This message should be localized -->
''You can download an empty copy of Tiddlywiki with German (Austria) translation here: [[https://tiddlywiki.com/languages/de-DE/empty.html]]''
4 changes: 4 additions & 0 deletions editions/tw5.com/tiddlers/languages/Language de-DE.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: Language de-DE

<!-- TODO: This message should be localized -->
''You can download an empty copy of Tiddlywiki with German (Germany) translation here: [[https://tiddlywiki.com/languages/de-DE/empty.html]]''
4 changes: 4 additions & 0 deletions editions/tw5.com/tiddlers/languages/Language el-GR.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: Language el-GR

<!-- TODO: This message should be localized -->
''After you downloaded tiddlywiki, you can install the Greek language plugin in Control Panel → Plugins → Get more plugins → Open plugin library → Languages.''
3 changes: 3 additions & 0 deletions editions/tw5.com/tiddlers/languages/Language en-GB.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: Language en-GB

''English (British) is the default language of ~TiddlyWiki.''
3 changes: 3 additions & 0 deletions editions/tw5.com/tiddlers/languages/Language en-PH.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: Language en-PH

''After you downloaded tiddlywiki, you can install the English (Philippines) language plugin in Control Panel → Plugins → Get more plugins → Open plugin library → Languages.''
3 changes: 3 additions & 0 deletions editions/tw5.com/tiddlers/languages/Language en-US.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: Language en-US

''After you downloaded tiddlywiki, you can install the English (US) language plugin in Control Panel → Plugins → Get more plugins → Open plugin library → Languages.''
4 changes: 4 additions & 0 deletions editions/tw5.com/tiddlers/languages/Language es-ES.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: Language es-ES

<!-- TODO: This message should be localized -->
''You can download an empty copy of Tiddlywiki with Spanish translation here: [[https://tiddlywiki.com/languages/es-ES/empty.html]]''
4 changes: 4 additions & 0 deletions editions/tw5.com/tiddlers/languages/Language fr-FR.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: Language fr-FR

<!-- TODO: This message should be localized -->
''You can download an empty copy of Tiddlywiki with French translation here: [[https://tiddlywiki.com/languages/fr-FR/empty.html]]''
4 changes: 4 additions & 0 deletions editions/tw5.com/tiddlers/languages/Language ja-JP.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: Language ja-JP

<!-- TODO: This message should be localized -->
''You can download an empty copy of Tiddlywiki with Japanese translation here: [[https://tiddlywiki.com/languages/ja-JP/empty.html]]''
4 changes: 4 additions & 0 deletions editions/tw5.com/tiddlers/languages/Language ko-KR.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: Language ko-KR

<!-- TODO: This message should be localized -->
''You can download an empty copy of Tiddlywiki with Korean translation here: [[https://tiddlywiki.com/languages/kp-KR/empty.html]]''
4 changes: 4 additions & 0 deletions editions/tw5.com/tiddlers/languages/Language pl-PL.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: Language pl-PL

<!-- TODO: This message should be localized -->
''After you downloaded tiddlywiki, you can install the Polish language plugin in Control Panel → Plugins → Get more plugins → Open plugin library → Languages.''
5 changes: 5 additions & 0 deletions editions/tw5.com/tiddlers/languages/Language unsupported.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: Language unsupported

''Sorry, the language you are using ({{$:/info/browser/language}}) does not have an official translation.''

''See [[Translate TiddlyWiki into your language]] and [[this link|https://tiddlywiki.com/dev/#How%20to%20create%20a%20translation%20for%20TiddlyWiki]] to learn about how to contribute a new translation to ~TiddlyWiki''
3 changes: 3 additions & 0 deletions editions/tw5.com/tiddlers/languages/Language zh-Hans.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: Language zh-Hans

''你可以在此处下载带有简体中文翻译的空白版本:[[https://tiddlywiki.com/languages/zh-Hans/empty.html]]''
3 changes: 3 additions & 0 deletions editions/tw5.com/tiddlers/languages/Language zh-Hant.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: Language zh-Hant

''你可以在此處下載帶有繁體中文翻譯的空白版本:[[https://tiddlywiki.com/languages/zh-Hant/empty.html]]''