Bitcoin.pdf: Create Page Linking To Translations

- Adds a new page linking to all translations of Nakamoto's Bitcoin
  paper, and also provides instructions for adding new translations

- Changes all links on the site that used to point directly to the
  English bitcoin.pdf to point to the new page.

- Add Spanish Translation by Breathingdog, as well as Spanish strings
  for the now page also by Breathingdog
This commit is contained in:
David A. Harding 2015-04-23 16:49:54 -04:00
parent 3302d27ebc
commit d383940ecb
No known key found for this signature in database
GPG key ID: 4B29C30FF29EC4B7
32 changed files with 115 additions and 55 deletions

View file

@ -87,6 +87,12 @@ module Jekyll
text.gsub!("#"+key+"#",'/'+lang+'/'+CGI::escape(value))
end
end
## Hack for renaming links to the Bitcoin paper. Safe to remove
## when all languages have "bitcoin-paper:" defined in the "url:"
## section of their '_translations' YAML file.
text.gsub!('#bitcoin-paper#','/bitcoin.pdf')
anc = site['loc'][lang]['anchor']
anc.each do |page,anch|
anch.each do |key,value|