# Usage **Easy preview**: Simple changes in the texts can be previewed live on bitcoin.org with any recent browser. You only need to click anywhere on the page and hold your mouse button for one second. You'll then be able to edit the page just like a document. Changes will be lost as soon as the page is refreshed. **Real preview**: Install dependencies, edit the files, run jekyll (or "jekyll build" on older setups), and copy the output files from _site/ at the root of your web server. If you have no web server, run jekyll --server (or "jekyll serve" on older setups). This server requires you to add a trailing ".html" by hand in your browser window. ## Requirements Installing dependencies on Ubuntu 12.10 sudo apt-get install jekyll node-less ruby1.9.1-dev sudo gem install ffi-icu 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 ffi-icu ## 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. ### Import translations **Update translations**: You can overwrite each language files in _translations by their updated version from Transifex. You should make sure that each .html files (in _layouts, _templates) don't serve outdated content for those languages. You should also make sure that no url has been changed by translators. If one page has been replaced or moved, a redirection can be added in _config.yml. **Add a new language**: You can put the language file from Transifex in _translations and add the language in _config.yml in the right display order for the language bar. Make sure to review all pages and check all links. ### Update 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 %} **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 ### 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" alias: "chainfork" active: true banner: "Chain fork - Please stop mining on bitcoin version 0.8.0. Click here for more information." ---
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.
More information will follow.