Skip to content
This repository has been archived by the owner on May 29, 2018. It is now read-only.

Commit

Permalink
Add full translation system
Browse files Browse the repository at this point in the history
  • Loading branch information
zquestz committed Dec 17, 2017
1 parent 1cb31e5 commit 1c457f9
Show file tree
Hide file tree
Showing 29 changed files with 9,957 additions and 1,483 deletions.
24 changes: 15 additions & 9 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
require 'bundler'
Bundler.setup

require 'i18n'
require "i18n/backend/fallbacks"
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)

namespace :docker do
desc "build docker images"
task :build do
task :build => ['translations:build'] do
puts "Building bitcoincash docker image"
puts `docker build -t bitcoincash .`
end
end

namespace :translations do
require 'erb'
require 'i18n'
require "i18n/backend/fallbacks"
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
I18n.load_path = Dir['./translations/*.yml']

desc "build translated html files"
task :build do
puts "Building bitcoincash translated html files"
end
desc "check translation files"
task :check do
puts "Checking bitcoincash translation files"
template = File.read('index.html.erb')
renderer = ERB.new(template)
I18n.available_locales.sort.each do |locale|
puts "Building #{locale}"
I18n.locale = locale
File.write(File.join('.', 'html', "index.#{locale}.html"), renderer.result())
File.write(File.join('.', 'html', "index.html"), renderer.result()) if locale == :en
end
end
end

Expand Down
607 changes: 607 additions & 0 deletions html/index.cs.html

Large diffs are not rendered by default.

607 changes: 607 additions & 0 deletions html/index.de.html

Large diffs are not rendered by default.

607 changes: 607 additions & 0 deletions html/index.el.html

Large diffs are not rendered by default.

607 changes: 607 additions & 0 deletions html/index.en.html

Large diffs are not rendered by default.

607 changes: 607 additions & 0 deletions html/index.es.html

Large diffs are not rendered by default.

606 changes: 606 additions & 0 deletions html/index.fr.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ <h3>Frequently Asked Questions</h3>
<p class="question">Why was a fork necessary to create Bitcoin Cash?</p>
<p>The legacy Bitcoin code had a maximum limit of 1MB of data per block, or about 3 transactions per second. Although technically simple to raise this limit, the community could not reach a consensus, even after years of debate.</p>
<p class="question">Was the 1 MB block size limit causing problems for Bitcoin?</p>
<p>Yes, In 2017, capacity hit the 'invisible wall'. Fees skyrocketed, and Bitcoin became unreliable, with some users unable to get their transactions confirmed, even after days of waiting.</p>
<p>Yes, in 2017, capacity hit the 'invisible wall'. Fees skyrocketed, and Bitcoin became unreliable, with some users unable to get their transactions confirmed, even after days of waiting.</p>
<p>Bitcoin's market price has increased, but its growth and usefulness as a currency has stagnated. Many users, merchants, businesses and even investors left Bitcoin for alternatives, causing its dominance to fall from 95% to as low as 40%.</p>
<p class="question">Does Bitcoin Cash fix these problems?</p>
<p>Yes. Bitcoin Cash immediately raised the block size limit to 8MB as part of a massive on-chain scaling approach. There is ample capacity for everyone's transactions.</p>
Expand All @@ -560,6 +560,7 @@ <h3>Frequently Asked Questions</h3>
<p>This decentralization of development (and decentralization of software implementations) is a much needed and important step forward.</p>
<p class="question">What is the ticker symbol for Bitcoin Cash?</p>
<p>Bitcoin Cash is represented by a number of different ticker symbols depending on the service or wallet. BCH/BCC are the most popular tickers, with XBC being used to meet the International Standard for currency codes (ISO 4217).</p>

</div>
</div>
</div>
Expand Down
607 changes: 607 additions & 0 deletions html/index.ms.html

Large diffs are not rendered by default.

607 changes: 607 additions & 0 deletions html/index.nl.html

Large diffs are not rendered by default.

608 changes: 608 additions & 0 deletions html/index.pl.html

Large diffs are not rendered by default.

608 changes: 608 additions & 0 deletions html/index.pt-BR.html

Large diffs are not rendered by default.

607 changes: 607 additions & 0 deletions html/index.pt-PT.html

Large diffs are not rendered by default.

607 changes: 607 additions & 0 deletions html/index.zh-CN.html

Large diffs are not rendered by default.

607 changes: 607 additions & 0 deletions html/index.zh-TW.html

Large diffs are not rendered by default.

575 changes: 575 additions & 0 deletions index.html.erb

Large diffs are not rendered by default.

226 changes: 113 additions & 113 deletions translations/cs.yml

Large diffs are not rendered by default.

226 changes: 113 additions & 113 deletions translations/de.yml

Large diffs are not rendered by default.

226 changes: 113 additions & 113 deletions translations/el.yml

Large diffs are not rendered by default.

226 changes: 113 additions & 113 deletions translations/en.yml

Large diffs are not rendered by default.

226 changes: 113 additions & 113 deletions translations/es.yml

Large diffs are not rendered by default.

228 changes: 114 additions & 114 deletions translations/fr.yml

Large diffs are not rendered by default.

226 changes: 113 additions & 113 deletions translations/ms.yml

Large diffs are not rendered by default.

226 changes: 113 additions & 113 deletions translations/nl.yml

Large diffs are not rendered by default.

228 changes: 114 additions & 114 deletions translations/pl.yml

Large diffs are not rendered by default.

230 changes: 115 additions & 115 deletions translations/pt-BR.yml

Large diffs are not rendered by default.

226 changes: 113 additions & 113 deletions translations/pt-PT.yml

Large diffs are not rendered by default.

226 changes: 113 additions & 113 deletions translations/zh-CN.yml

Large diffs are not rendered by default.

226 changes: 113 additions & 113 deletions translations/zh-TW.yml

Large diffs are not rendered by default.

0 comments on commit 1c457f9

Please sign in to comment.