No description
Find a file
saivann f00bd18c7c Merge pull request #213 from bitcoin/instanttxt
Improve text about reversible instant transactions and move it on "You need to know"
2013-06-30 22:23:47 -07:00
_alerts Add "Network status and alerts" page and RSS feed (fixes #170) 2013-06-18 23:50:37 -04:00
_contrib Switch to transifex for translations 2013-05-21 01:07:13 -04:00
_events Add events page and RSS feed 2013-06-25 00:02:33 -04:00
_layouts Merge pull request #212 from bitcoin/about 2013-06-27 10:06:28 -07:00
_less Hardcode icons width and height in CSS 2013-06-27 22:58:38 -04:00
_plugins Add events page and RSS feed 2013-06-25 00:02:33 -04:00
_redirects Clean and improve redirects.rb 2013-06-22 20:43:19 -04:00
_releases Fix v.0.8.3 release description 2013-06-25 14:13:11 -04:00
_templates Improve text about reversible instant transactions and move it on "You need to know" 2013-07-01 01:18:20 -04:00
_translations Improve text about reversible instant transactions and move it on "You need to know" 2013-07-01 01:18:20 -04:00
ar Add Persian (fa) translation (thanks Mohammad Rafigh, Foroozan Akhavan, Foroozan Sol) 2013-06-01 14:19:43 -04:00
css Merge pull request #207 from bitcoin/simplemenu 2013-06-18 21:37:28 -07:00
de/img Add German (de) translation (thanks Simon Hinterreiter, Micky25) 2013-06-16 13:02:25 -04:00
en Add events page and RSS feed 2013-06-25 00:02:33 -04:00
es/img Switch to transifex for translations 2013-05-21 01:07:13 -04:00
fa Add Persian (fa) translation (thanks Mohammad Rafigh, Foroozan Akhavan, Foroozan Sol) 2013-06-01 14:19:43 -04:00
font Add Persian (fa) translation (thanks Mohammad Rafigh, Foroozan Akhavan, Foroozan Sol) 2013-06-01 14:19:43 -04:00
fr/img Switch to transifex for translations 2013-05-21 01:07:13 -04:00
img Add "Network status and alerts" page and RSS feed (fixes #170) 2013-06-18 23:50:37 -04:00
it/img Add Italian (it) translation (thanks Joif) (fixes #127) 2013-05-21 23:00:38 -04:00
js Re-structure and simplify menu layout (fixes #198) 2013-06-19 00:29:52 -04:00
nl/img Switch to transifex for translations 2013-05-21 01:07:13 -04:00
pl Add Polish (pl) translation (thanks Wojciech Myrda) 2013-06-08 12:29:03 -04:00
ru Add Russian translations (thanks alisherfaz) (fixes #124) 2013-05-22 04:54:48 -04:00
.gitignore add common useless OS files in .gitignore 2013-03-23 01:55:40 -04:00
404.html Switch to transifex for translations 2013-05-21 01:07:13 -04:00
_config.yml Add Bitcoin-Qt release v0.8.3 2013-06-25 14:08:04 -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
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
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
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 Switch to transifex for translations 2013-05-21 01:07:13 -04:00
jgarzik-bitpay.asc Change Jeff Garzik public key and email address to bitpay 2013-05-23 12:27:10 -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
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 events page and RSS feed 2013-06-25 00:02:33 -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

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

How to translate

  • Translations can be done on transifex https://www.transifex.com/projects/p/bitcoinorg/
  • You must be a native speaker for the language you choose to translate.
  • At least one other reviewer is required.
  • Changing the meaning of any statement should be avoided. In doubt, you can open a discussion on transifex.
  • Sentences and popular expressions should be adapted so that they sound native in your language.

Add new translations

  1. Begin, Add language code where required in _config.yml.
  2. Import, Download the translated .yml file from transifex and put that file in _translations.
  3. Images, Translate the few images that contain text with a vector image editing software like Inkscape. Translations for these images are at the end of the imported .yml translation file. Make sure to convert all texts to paths when saving final svg files.
  4. Vocabulary, Add correct alphabetical order for your language in the vocabulary page.
  5. Preview, Check if all pages are complete, test each links, check that texts with a limited size display nicely. For example, right side buttons and some titles have height or width restrictions.

Update translations

You can import all translations (complete and incomplete) from transifex using the transifex client:

tx init
tx set --auto-remote https://www.transifex.com/projects/p/bitcoinorg/
tx pull -a -s --skip

Then, you can overwrite any specific translation in the _translations folder by one of these files. You might also need to make sure that each .html files (in _layouts, _templates and _redirects) don't serve outdated content for those languages. You should also make sure that no urls or anchor has been changed by translators.

Update source english strings

Any change in the english texts can be done through a pull request on github. If your changes affect the html layout of a page, you should apply fallback html code for other languages until they are updated.

{% case page.lang %}
{% when 'fr' %}
  (outdated french content)
{% else %}
  (up to date english content)
{% endcase %}

Update source strings on transifex

When translation is needed: If you want all changes you've made to be re-translated, you can simply update the resource file (en.yml) on transifex.

When translation is not needed: If you are only pushing typo fixes and that you don't want translators to redo all their work again, you can use the transifex client to pull translations, update en.yml and push back all translations at once:

tx init
tx set --auto-remote https://www.transifex.com/projects/p/bitcoinorg/
tx pull -a -s --skip
tx set --source -r bitcoinorg.bitcoinorg -l en translations/bitcoinorg.bitcoinorg/en.yml
(update en.yml)
tx push -s -t -f --skip --no-interactive

Advanced Usage

Alert banner

You can put an alert banner on the website by changing the ALERT and ALERT_CLASS variables in _config.yml. You can both set one fallback alert for all languages and many translated alerts for specific languages.

Example:

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

This 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)

Network alerts

Network alerts should be placed in _alerts/YYYY-MM-DD-SHORTITLE.html and adhere to this format:

---
title: "11/12 March 2013 Chain Fork"
lastmod: "Fri Mar 16 22:58:00 UTC 2012"
alias: "chainfork"
active: true
---

<p>
A chain fork is happening. Please stop mining on bitcoin version 0.8.0. Your bitcoins are safe but it is recommended that you postpone your Bitcoin transactions for the next hours.
</p>
<p>
More information will follow.
</p>

  • SHORTTITLE is used to construct the URL.
  • title: ... will be used as the title in the layout.
  • lastmod: ... will be used as the last modification date in the layout.
  • alias: ... (optional) a short alias to be used for Bitcoin-Qt alerts. Ex. "dos" will produce /dos.html
  • active: ... (true or false) define if the alert should appear as ongoing in the network status page.

Release Notes

Release notes should be placed in _releases/YYYY-MM-DD-SHORTTITLE.md and adhere to this format:

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

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
  • title: ... will be used as the title
  • src: ... (optional) link to full annoucement

Events

Events should be placed in _events/YYYY-MM-DD-SHORTTITLE.md and adhere to this format:

---
title: "Bitcoin 2013 The future of payments"
city: "San Jose"
country: "United States"
link: "http://bitcoin2013.com/"
---

Aliases for contributors

Aliases for contributors are defined in _config.yml.

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