Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbudden committed Jun 7, 2011
0 parents commit 9a6cfe5
Show file tree
Hide file tree
Showing 100 changed files with 111,166 additions and 0 deletions.
33 changes: 33 additions & 0 deletions locales/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Translating TiddlyWiki
======================

Are you you thinking of writing a translation for TiddlyWiki? That is fantastic: it will make a real difference to the community. This page is here to get you going.

If you have any questions you would like addressed, please contact [email protected].


How to create or update a translation of TiddlyWiki
---------------------------------------------------

1. First, check below to see if the translation you need already exists.
2. Download a fresh copy of TiddlyWiki from http://www.tiddlywiki.com/
3. In another window, visit https://github.com/TiddlyWiki/tiddlywiki/blob/master/locales/core/en/locale.en.js and copy all the text to the clipboard
4. Go back to the TiddlyWiki file and create a tiddler named after the language you are translating
5. Paste the clipboard into the body of the new tiddler
6. Add the tag "systemConfig" to the tiddler
7. Click 'done' and save your changes
8. Study the entries you've pasted and replace the various quoted English strings (only the ones in double-quotes!) with their translations
9. Save and reload to test
10. The "config.locale" in your translation-tiddler is used to set the W3C language tags in your HTML automatically, but since this reload is the first time your translation is executed, only now these tags are actually updated. Therefore you have to save your TW once again.


Useful links
------------

[W3C Internationalization Best Practices](http://www.w3.org/TR/i18n-html-tech-lang/)

http://www.w3.org/International/articles/language-tags/Overview.en.php

http://www.loc.gov/standards/iso639-2/php/code_list.php

http://www.iana.org/assignments/language-subtag-registry
2 changes: 2 additions & 0 deletions locales/core/ca/empty.ca.html.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
recipe: ../../../../core/tiddlywiki.html.recipe
tiddler: locale.ca.js
499 changes: 499 additions & 0 deletions locales/core/ca/locale.ca.2.5.2.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions locales/core/cs/empty.cs.html.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
recipe: ../../../../core/tiddlywiki.html.recipe
tiddler: locale.cs.js
488 changes: 488 additions & 0 deletions locales/core/cs/locale.cs.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions locales/core/cs/locale.cs.js.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: locale.cs
modifier: Petr Chlebek
modified: 200707060000
created: 200706160000
tags: systemConfig excludeLists excludeSearch
530 changes: 530 additions & 0 deletions locales/core/de/locale.de.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions locales/core/el/empty.el.html.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
recipe: ../../../../core/tiddlywiki.html.recipe
tiddler: locale.el.js
430 changes: 430 additions & 0 deletions locales/core/el/locale.el.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions locales/core/el/locale.el.js.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: locale.el
modifier: Spyros Kroustalakis
modified: 200705060000
created: 200705060000
tags: systemConfig excludeLists excludeSearch
6 changes: 6 additions & 0 deletions locales/core/en/Credits.tiddler
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div title="Credits" modifier="MartinBudden">
<pre>TiddlyWiki was translated into English by Joe Bloggs with help from John and Jane Doe.

Thanks also to Fred Nurk, Chan Siu Ming, Vasya Pupkin, Fulano de Tal and Nguoi La who all made significant contributions.
</pre>
</div>
5 changes: 5 additions & 0 deletions locales/core/en/DefaultTiddlers.tiddler
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div title="DefaultTiddlers" modifier="MartinBudden" tags="excludeLists excludeSearch">
<pre>[[TranslatedGettingStarted]]
[[Credits]]
[[DownloadSoftware]]</pre>
</div>
8 changes: 8 additions & 0 deletions locales/core/en/DownloadedSoftware.tiddler
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div title="DownloadSoftware" modifier="JeremyRuston">
<pre>Because TiddlyWiki is a single HTML file, you've actually already downloaded the entire software just by viewing this site. If you want to be able to SaveChanges, you can save your own blank TiddlyWiki to your local drive by right clicking on [[this link to empty.html|empty.html]] and selecting 'Save link as...' or 'Save target as...'. You can choose where to save the file, and what to call it (but make sure that it's saved in HTML format and with an HTML extension).

@@There can be confusing and subtle differences between different browsers. Some points to watch:@@
* Do ''not'' use the File/Save command in your browser to save TiddlyWiki, because of SaveUnpredictabilities.
* Make sure that you're saving in HTML (or &quot;page source&quot; format), not one of the new-fangled archive formats
If you're already using TiddlyWiki, see HowToUpgrade. If you want to save a complete copy of this site, including all the instructions and other text, you can use this [[this link|index.html]].</pre>
</div>
7 changes: 7 additions & 0 deletions locales/core/en/GettingStarted.tiddler
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<div title="TranslatedGettingStarted" modifier="MartinBudden">
<pre>To get started with this blank TiddlyWiki, you'll need to modify the following tiddlers:
* SiteTitle &amp; SiteSubtitle: The title and subtitle of the site, as shown above (after saving, they will also appear in the browser title bar)
* MainMenu: The menu (usually on the left)
* DefaultTiddlers: Contains the names of the tiddlers that you want to appear when the TiddlyWiki is opened
You'll also need to enter your username for signing your edits: &lt;&lt;option txtUserName&gt;&gt;</pre>
</div>
15 changes: 15 additions & 0 deletions locales/core/en/OptionsPanel.tiddler
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<div title="OptionsPanel" modifier="MartinBudden" tags="excludeLists excludeSearch">
<pre>These Interface Options for customising TiddlyWiki are saved in your browser

Your username for signing your edits. Write it as a WikiWord (eg JoeBloggs)
&lt;&lt;option txtUserName&gt;&gt;

&lt;&lt;option chkSaveBackups&gt;&gt; Save backups
&lt;&lt;option chkAutoSave&gt;&gt; Auto save
&lt;&lt;option chkRegExpSearch&gt;&gt; Regexp search
&lt;&lt;option chkCaseSensitiveSearch&gt;&gt; Case sensitive search
&lt;&lt;option chkAnimate&gt;&gt; Enable animations

----
Also see [[TranslatedAdvancedOptions|AdvancedOptions]]</pre>
</div>
7 changes: 7 additions & 0 deletions locales/core/en/TiddlyWiki.en.html.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
recipe: ../../../../core/tiddlywiki.html.recipe
tiddler: locale.en.js
shadow: GettingStarted.tiddler
shadow: OptionsPanel.tiddler
tiddler: Credits.tiddler
tiddler: DefaultTiddlers.tiddler
tiddler: DownloadedSoftware.tiddler
2 changes: 2 additions & 0 deletions locales/core/en/empty.en.html.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
recipe: ../../../../core/tiddlywiki.html.recipe
tiddler: locale.en.js
Loading

0 comments on commit 9a6cfe5

Please sign in to comment.