No description
Find a file
2013-04-25 12:49:47 -04:00
_contrib improve translation system 2013-03-25 00:01:18 -04:00
_layouts Add Press Center with resources, FAQ and interviewees 2013-04-18 15:25:07 -04:00
_less Merge pull request #118 from bitcoin/securewallet 2013-04-20 02:12:38 -07:00
_plugins Send User-Agent header to github (fixes FTBFS due to 403 HTTP error) 2013-04-25 02:02:23 -04:00
_posts Missed a 0.8.0 2013-03-18 11:28:03 -04:00
en Proofread changes (thanks Arran Walker) (fixes #156) 2013-04-25 12:49:47 -04:00
es Change "blockchain" to "block chain" and fix one svg 2013-04-18 23:20:50 -04:00
font new bitcoin.org 2013-03-18 14:29:59 -04:00
fr Use a descriptive title for the index pages (fixes #138) 2013-04-15 02:49:49 -04:00
img Add Vitalik Buterin and fix some typos and pictures colors 2013-04-24 00:49:09 -04:00
js Merge pull request #118 from bitcoin/securewallet 2013-04-20 02:12:38 -07:00
.gitignore add common useless OS files in .gitignore 2013-03-23 01:55:40 -04:00
404.html Add fallback 404 page 2013-04-07 09:38:05 -04:00
_config.yml Add "Secure your wallet" page 2013-04-19 16:25:11 -04:00
about.html new bitcoin.org 2013-03-18 14:29:59 -04:00
andreas_schildbach.asc Add gpg key for Andreas Schildbach (8B877A60). 2013-03-03 00:53:41 +01:00
bitcoin.pdf initial commit 2011-08-31 21:30:26 +02:00
chainfork.html new bitcoin.org 2013-03-18 14:29:59 -04:00
clients.html new bitcoin.org 2013-03-18 14:29:59 -04:00
CNAME re-add CNAME with bitcoin.org 2011-09-03 17:41:56 +02:00
critfix.html new bitcoin.org 2013-03-18 14:29:59 -04:00
dos.html new bitcoin.org 2013-03-18 14:29:59 -04:00
favicon.ico new bitcoin.org 2013-03-18 14:29:59 -04:00
favicon.png temporary link to bitcoin-qt instead of multibit and a few minor fixes 2013-03-21 21:08:28 -04:00
feb20.html new bitcoin.org 2013-03-18 14:29:59 -04:00
gavinandresen.asc Updated keys (BE38D3A8 and 1FC730C1) for Gavin-- new 4096-bit RSA key, and both keys signed by several people. 2011-12-15 17:35:45 -05:00
gmaxwell.asc Adding myself to the index. Also a minor update to the feb20.html 2012-02-19 13:58:24 -05:00
google545411b7903b3247.html Setup Google Webmaster tools 2013-04-11 20:54:36 -04:00
index.html Proofread changes (thanks Arran Walker) (fixes #156) 2013-04-25 12:49:47 -04:00
jgarzik-exmulti.asc initial commit 2011-08-31 21:30:26 +02:00
laanwj.asc add Wladimir to list of developers 2011-10-19 15:59:15 +02:00
may15.html new bitcoin.org 2013-03-18 14:29:59 -04:00
news.html new bitcoin.org 2013-03-18 14:29:59 -04:00
pieterwuille.asc Updated my gpg key 2012-03-16 17:42:06 +01:00
README.md Add Press Center with resources, FAQ and interviewees 2013-04-18 15:25:07 -04:00
robots.txt new bitcoin.org 2013-03-18 14:29:59 -04:00
satoshinakamoto.asc Add Satoshi PGP key (fixes #79) 2013-04-06 05:15:26 -04:00
schneider.asc add press-list, renamed all PGP keys to .asc 2011-09-03 14:18:53 +02:00
sitemap.xml Remove www. prefix from sitemap 2013-04-18 23:51:15 -04:00

Requirements

Installing dependencies on Ubuntu 12.10

sudo apt-get install jekyll node-less

Installing dependencies on older Ubuntu and Debian distributions

sudo apt-get install rubygems ruby1.9.1-dev build-essential
sudo gem install jekyll json less therubyracer

Usage

  • update DOWNLOAD_VERSION in _config.yml
  • run jekyll
  • output will be in _site/

Translation

Guidelines

  • You must be a native speaker for the language you choose to translate.
  • At least one other reviewer might be required and is highly recommanded.
  • Try to avoid changing the meaning of any statements. If you need to change the meaning of anything, make a note of it and list that in the pull request.
  • Sentences and popular expressions should be adapted so that they sound native in your language.
  • You must save your work with UTF-8 encoding.

How to translate

  1. Begin, Run ./_contrib/translate (ISO 639-1 language code) (language name) to create your language. Ex : ./_contrib/translate fr "Français"
  2. Texts, Open .html files in the appropriate folder and in _layouts and translate all human readable english dialogs (without touching the html tags and the page id).
  3. Links, Update the name of each .html file so that it reflects your language and update the links in the .html files accordingly.
  4. Sitemap, Add links to your translated pages in _config.yml under their equivalent english version.
  5. Images, Update the few images that contain text with any vector image editing software like Inkscape.
  6. Languages, Make sure that the languages are listed in alphabetical order in _config.yml
  7. Post, Remove pages that use _posts such as "version-history" and "news". Those are not meant to be translated yet.
  8. Press, Remove "press coverage" and "interviewees" in the Press center. The rest can be translated.
  9. Preview, Check that texts that are limited in size display nicely. For example, right side buttons and some titles have height or width restrictions. You can preview your work without building the website. Just visit the existing english page, open the javascript console of your browser (CTRL + SHIFT + J on Google Chrome) and copy the following command to make the page editable : document.body.contentEditable=true . This will allow you to edit and preview the page in your browser like a document.

Update

Each time that a commit needs to be translated in other languages, a link to this commit must be added to https://github.com/bitcoin/bitcoin.org/wiki/Translations-tracking with all current languages listed under it. When a translation is updated through a pull request, all occurences of this language can be removed from the translations tracking page.

Advanced Usage

Alerts

You can easily put a global alert on the website by changing the ALERT and ALERT_CLASS variables in _config.yml. And you can also set an alert specific to a language by appending the language code to the ALERT.

Example:

ALERT_CLASS: error
ALERT: <strong>Security alert:</strong> Please upgrade to 0.3.25 as soon as possible!
ALERT_fr: <strong>Alerte de sécurité:</strong> Mettez Bitcoin à jour vers la version 0.3.25 sans délais!

will produce an english red alert box for all languages, and a translated red alert box for french language. Possible classes are: error (red), info (blue), success (green) and warning (yellow)

Release Notes

Release notes should be placed in _posts/releases/YEAR-MONTH-DAY-SHORTTITLE.md and adhere to this format:

---
layout: post
title: Bitcoin version 0.3.24 released
src: http://sourceforge.net/mailarchive/message.php?msg_id=27771039
category: releases
---

Bitcoin v0.3.24 is now available for download at
<https://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.3.24/>

...
  • SHORTTITLE is used to construct the URL. Something like v0.3.24 will be fine
  • layout: post important for Jekyll
  • title: ... will be used as the title
  • src: ... (optional) link to full annoucement
  • category: ... category of post ** releases ** events

Aliases for contributors

Aliases for contributors are defined in _config.yml.

aliases:
  s_nakamoto: Satoshi Nakamoto
  --author=Satoshi Nakamoto: Satoshi Nakamoto
  gavinandresen: Gavin Andresen