diff --git a/README.md b/README.md
index 34f69963..02a748d4 100644
--- a/README.md
+++ b/README.md
@@ -8,19 +8,33 @@ Installing dependencies
# Usage
* update DOWNLOAD\_VERSION in _config.yml
-* run ./_contrib/updatesitemap if you changed a page
* run jekyll
* output will be in \_site/
-# Translation
+## 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.
+
+### 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
-* Find the two letter ISO 639-1 code for your language (fr, en, jp)
-* Run ./_contrib/translate (language code) (language name)
-* Make sure that languages are listed in alphabetical order in _config.yml
-* Rename html files in (lang)/ according to your language. And update links in _layouts/base-(lang).html and (lang)/*.html to reflect your changes.
-* Translate all .html and images files in (lang)/ and _layouts/base-(lang).html
* A tips for translators, you can preview your work in a simple Google chrome browser with no HTTP server. Just go to the existing english page, open the javascript console with CTRL + SHIFT + J and use the following command to make the page editable : document.body.contentEditable=true
+### Update
+
+All changes made in the english version can be easily tracked on github.
+
## Advanced Usage
### Alerts
diff --git a/_config.yml b/_config.yml
index 5754abd4..89904d0d 100644
--- a/_config.yml
+++ b/_config.yml
@@ -3,11 +3,61 @@ ALERT_CLASS:
ALERT:
langs:
-- langcode: fr
- langtext: Français
-- langcode: en
- langtext: English
+ fr: Français
+ en: English
+section:
+ index:
+ en:
+ fr:
+ about:
+ en: about
+ fr: a-propos
+ bitcoin-for-developers:
+ en: bitcoin-for-developers
+ fr: bitcoin-pour-developpeurs
+ bitcoin-for-enthusiasts:
+ en: bitcoin-for-enthusiasts
+ fr: bitcoin-pour-passionnes
+ bitcoin-for-individuals:
+ en: bitcoin-for-individuals
+ fr: bitcoin-pour-particuliers
+ bitcoin-for-organizations:
+ en: bitcoin-for-organizations
+ fr: bitcoin-pour-organisations
+ choose-your-wallet:
+ en: choose-your-wallet
+ fr: choisir-votre-porte-monnaie
+ community:
+ en: community
+ fr: communaute
+ development:
+ en: development
+ fr: developpement
+ download:
+ en: download
+ fr: telecharger
+ foundation:
+ en: foundation
+ fr: fondation
+ how-it-works:
+ en: how-it-works
+ fr: comment-ca-marche
+ resources:
+ en: resources
+ fr: ressources
+ support-bitcoin:
+ en: support-bitcoin
+ fr: supporter-bitcoin
+ version-history:
+ en: version-history
+ vocabulary:
+ en: vocabulary
+ fr: vocabulaire
+ you-need-to-know:
+ en: you-need-to-know
+ fr: vous-devez-savoir
+
safe: false
auto: false
server: false
diff --git a/_contrib/translate b/_contrib/translate
index cff28262..e3b11347 100755
--- a/_contrib/translate
+++ b/_contrib/translate
@@ -12,12 +12,9 @@ sed -i "s_href=\"/en/_href=\"/${1}/_g" ${1}/*.html
sed -i "s_src=\"/en/_src=\"/${1}/_g" ${1}/*.html
sed -i "s_href=\"/en/_href=\"/${1}/_g" _layouts/base-${1}.html
sed -i "s_src=\"/en/_src=\"/${1}/_g" _layouts/base-${1}.html
-sed -i "s_langcode: en_langcode: ${1}_g" _layouts/base-${1}.html
-sed -i "s_langtext: English_langtext: ${2}_g" _layouts/base-${1}.html
+sed -i "s_lang: en_lang: ${1}_g" _layouts/base-${1}.html
sed -i "s/ALERT_CLASS_en/ALERT_CLASS_${1}/g" _layouts/base-${1}.html
sed -i "s/ALERT_en/ALERT_${1}/g" _layouts/base-${1}.html
-sed -i "/langcode: ${1}/d" _config.yml
-sed -i "/langtext: ${2}/d" _config.yml
-sed -i "/langs:/a - langtext: ${2}" _config.yml
-sed -i "/langs:/a - langcode: ${1}" _config.yml
-sed -i "s_- langtext: ${2}_ langtext: ${2}_g" _config.yml
+sed -i "/${1}: ${2}/d" _config.yml
+sed -i "/langs:/a - ${1}: ${2}" _config.yml
+sed -i "s_- ${1}: ${2}_ ${1}: ${2}_g" _config.yml
diff --git a/_contrib/updatesitemap b/_contrib/updatesitemap
deleted file mode 100755
index dacd0d49..00000000
--- a/_contrib/updatesitemap
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/bash
-#Should be called each time a page is updated, added or removed to update sitemaps
-echo '' > sitemap.xml
-echo '' >> sitemap.xml
-for l in *; do
- if [[ ! -d $l || $l == "_site" || $l == "_layouts" ]]; then
- continue
- fi
- files=`find ${l} -name "*.html" -type f`
- for f in $files; do
- c=(${f//"."/ })
- c=${c[@]:0:1}
- if [[ $c == "${l}/index" ]]; then
- c=(${c//"/"/ })
- c="${c[@]:0:1}/"
- fi
- t=$(stat -c "%y" ${f})
- t=(${t//" "/ })
- t=${t[@]:0:1}
- echo "" >> sitemap.xml
- echo " http://bitcoin.org/${c}" >> sitemap.xml
- echo " ${t}" >> sitemap.xml
- echo "" >> sitemap.xml
- done
-done
-echo '' >> sitemap.xml
diff --git a/_layouts/base-en.html b/_layouts/base-en.html
index 87ee088a..f6574824 100644
--- a/_layouts/base-en.html
+++ b/_layouts/base-en.html
@@ -1,42 +1,38 @@
---
-langcode: en
-langtext: English
+lang: en
menufor:
- text: Individuals
- url: /en/bitcoin-for-individuals
+ url: bitcoin-for-individuals
- text: Organizations
- url: /en/bitcoin-for-organizations
+ url: bitcoin-for-organizations
- text: Developers
- url: /en/bitcoin-for-developers
+ url: bitcoin-for-developers
- text: Enthusiasts
- url: /en/bitcoin-for-enthusiasts
+ url: bitcoin-for-enthusiasts
menu:
- text: How it works
- url: /en/how-it-works
+ url: how-it-works
- text: Vocabulary
- url: /en/vocabulary
+ url: vocabulary
- text: Resources
- url: /en/resources
+ url: resources
- text: Community
- url: /en/community
+ url: community
- text: Development
- url: /en/development
+ url: development
- text: Foundation
- url: /en/foundation
+ url: foundation
- text: About
- url: /en/about
+ url: about
---
-
+
{{ page.title }}
{% lesscss bootstrap.less %}
-{% for lang in site.langs %}{% if lang.langcode != page.langcode %}
-
-{% endif %}{% endfor %}
{% if site.ALERT or site.ALERT_en %}
@@ -49,24 +45,24 @@ menu:
diff --git a/en/version-history.html b/en/version-history.html
index e9e1c912..95038d29 100644
--- a/en/version-history.html
+++ b/en/version-history.html
@@ -1,4 +1,5 @@
---
layout: post
+id: version-history
title: Version history
---
diff --git a/en/vocabulary.html b/en/vocabulary.html
index 79ff87b2..42c79620 100644
--- a/en/vocabulary.html
+++ b/en/vocabulary.html
@@ -1,5 +1,6 @@
---
layout: base-en
+id: vocabulary
title: Vocabulary - Bitcoin
---
Some Bitcoin words you might hear
diff --git a/en/you-need-to-know.html b/en/you-need-to-know.html
index 7a555825..5aca3788 100644
--- a/en/you-need-to-know.html
+++ b/en/you-need-to-know.html
@@ -1,5 +1,6 @@
---
layout: base-en
+id: you-need-to-know
title: Some things you need to know - Bitcoin
---
Some things you need to know
diff --git a/fr/a-propos.html b/fr/a-propos.html
index 08576b9d..c8c87cf8 100644
--- a/fr/a-propos.html
+++ b/fr/a-propos.html
@@ -1,5 +1,6 @@
---
layout: base-fr
+id: about
title: À propos - Bitcoin
---
À propos du Bitcoin
diff --git a/fr/bitcoin-pour-developpeurs.html b/fr/bitcoin-pour-developpeurs.html
index 4c4573b1..2f3ef8c6 100644
--- a/fr/bitcoin-pour-developpeurs.html
+++ b/fr/bitcoin-pour-developpeurs.html
@@ -1,5 +1,6 @@
---
layout: base-fr
+id: bitcoin-for-developers
title: Bitcoin pour les Développeurs - Bitcoin
---
Bitcoin pour les Développeurs
diff --git a/fr/bitcoin-pour-organisations.html b/fr/bitcoin-pour-organisations.html
index e8834636..ab5be638 100644
--- a/fr/bitcoin-pour-organisations.html
+++ b/fr/bitcoin-pour-organisations.html
@@ -1,5 +1,6 @@
---
layout: base-fr
+id: bitcoin-for-organizations
title: Bitcoin pour les Entreprises - Bitcoin
---
Bitcoin pour les Organisations
diff --git a/fr/bitcoin-pour-particuliers.html b/fr/bitcoin-pour-particuliers.html
index 63a3240f..82f47832 100644
--- a/fr/bitcoin-pour-particuliers.html
+++ b/fr/bitcoin-pour-particuliers.html
@@ -1,5 +1,6 @@
---
layout: base-fr
+id: bitcoin-for-individuals
title: Bitcoin pour les Particuliers - Bitcoin
---
Bitcoin pour les Particuliers
diff --git a/fr/bitcoin-pour-passionnes.html b/fr/bitcoin-pour-passionnes.html
index 72a1a7bb..c2331e82 100644
--- a/fr/bitcoin-pour-passionnes.html
+++ b/fr/bitcoin-pour-passionnes.html
@@ -1,5 +1,6 @@
---
layout: base-fr
+id: bitcoin-for-enthusiasts
title: Bitcoin pour les Passionnés
---