Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate jekyll-multiple-languages-plugin for translations #51

Merged
merged 1 commit into from Feb 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion Gemfile
@@ -1,3 +1,7 @@
source 'https://rubygems.org'

gem 'jekyll', '~>2.5.0'
gem 'jekyll', '~>3.0'
gem 'jekyll-multiple-languages-plugin'

# to avoid polling for changes on windows
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
116 changes: 57 additions & 59 deletions Gemfile.lock
@@ -1,73 +1,71 @@
GEM
remote: https://rubygems.org/
specs:
blankslate (2.1.2.4)
celluloid (0.16.0)
timers (~> 4.0.0)
classifier-reborn (2.0.3)
fast-stemmer (~> 1.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.9.1.1)
colorator (0.1)
execjs (2.6.0)
fast-stemmer (1.0.2)
ffi (1.9.10)
hitimes (1.2.2)
jekyll (2.5.3)
classifier-reborn (~> 2.0)
colorator (~> 0.1)
jekyll-coffeescript (~> 1.0)
jekyll-gist (~> 1.0)
jekyll-paginate (~> 1.0)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
colorator (1.1.0)
concurrent-ruby (1.0.5)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.5)
eventmachine (1.2.5-x64-mingw32)
ffi (1.9.21)
ffi (1.9.21-x64-mingw32)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.7.2)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1)
kramdown (~> 1.3)
liquid (~> 2.6.1)
jekyll-watch (~> 2.0)
kramdown (~> 1.14)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pygments.rb (~> 0.6.0)
redcarpet (~> 3.1)
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
toml (~> 0.1.0)
jekyll-coffeescript (1.0.1)
coffee-script (~> 2.2)
jekyll-gist (1.3.4)
jekyll-paginate (1.1.0)
jekyll-sass-converter (1.3.0)
sass (~> 3.2)
jekyll-watch (1.2.1)
listen (~> 2.7)
kramdown (1.8.0)
liquid (2.6.3)
listen (2.10.1)
celluloid (~> 0.16.0)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
mercenary (0.3.5)
parslet (1.5.0)
blankslate (~> 2.0)
posix-spawn (0.3.13)
pygments.rb (0.6.3)
posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.2.0)
rb-fsevent (0.9.6)
rb-inotify (0.9.5)
ffi (>= 0.5.0)
redcarpet (3.3.2)
jekyll-multiple-languages-plugin (1.5.1)
jekyll (>= 2.0, < 4.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-watch (2.0.0)
listen (~> 3.0)
kramdown (1.16.2)
liquid (4.0.0)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
mercenary (0.3.6)
pathutil (0.16.1)
forwardable-extended (~> 2.6)
public_suffix (3.0.2)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rouge (3.1.1)
ruby_dep (1.5.0)
safe_yaml (1.0.4)
sass (3.4.18)
timers (4.0.4)
hitimes
toml (0.1.2)
parslet (~> 1.5.0)
yajl-ruby (1.2.3)
sass (3.5.5)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
wdm (0.1.1)

PLATFORMS
ruby
x64-mingw32

DEPENDENCIES
jekyll (~> 2.5.0)
jekyll (~> 3.0)
jekyll-multiple-languages-plugin
wdm (>= 0.1.0)

BUNDLED WITH
1.15.1
1.16.1
18 changes: 16 additions & 2 deletions _config.yml
@@ -1,11 +1,11 @@
safe: false
port: 4000
baseurl: /
baseurl: ""
url: http://bitcoinxt.website

source: .
destination: ./_site
plugins: ./_plugins
plugins_dir: ./_plugins
exclude:
- Gemfile
- Gemfile.lock
Expand All @@ -16,3 +16,17 @@ exclude:
sass:
sass_dir: _sass
style: compressed

plugins:
- jekyll-multiple-languages-plugin

languages: ["en", "ru"]

exclude_from_localizations: [
"css",
"img",
"favicon.ico",
"favicon.png",
"industry-letter.pdf",
"robots.txt"
]
186 changes: 186 additions & 0 deletions _i18n/en.yml

Large diffs are not rendered by default.

205 changes: 205 additions & 0 deletions _i18n/ru.yml

Large diffs are not rendered by default.

56 changes: 0 additions & 56 deletions _layouts/base-ru.html

This file was deleted.

20 changes: 10 additions & 10 deletions _layouts/base.html
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html lang="en" class="no-js">
<html lang="{{ site.lang }}" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page.title }} - Bitcoin XT</title>
<title>{% t page.title %} - Bitcoin XT</title>
<meta name="keywords" content="bitcoin, bitcoin xt, bitcoin core, block size, blocks, limit, mining, network, vision, principles, source" />
<meta name="author" content="curvestudio" />
<meta name="description" content="{{ page.description }}">
<meta name="description" content="{% t page.description %}">
<link rel="shortcut icon" href="/favicon.png">
<link rel="stylesheet" href="/css/screen.css">
<!--[if IE]>
Expand All @@ -17,17 +17,17 @@
<body>
<div class="container" id="sec-top">
<header role="banner">
<div class="cbp-af-header cbp-af-header-shrink">
<div class="cbp-af-header cbp-af-header-{{ site.lang }} cbp-af-header-shrink">
<div class="cbp-af-inner">
<div class="logo">
<a href="index.html" title="Bitcoin XT"><img src="/img/bitcoin-logo.png" alt="Bitcoin XT"></a>
<a href="{{ site.baseurl }}/" title="Bitcoin XT"><img src="/img/bitcoin-logo.png" alt="Bitcoin XT"></a>
</div>
<nav class="pd-b">
<a accesskey="1" href="/" title="Welcome">Welcome</a>
<a href="/#sec-hardfork" title="Bigger&nbsp;blocks">Bigger&nbsp;blocks</a>
<a href="/patches.html" title="Features">Features</a>
<a accesskey="5" href="faq.html" title="Frequently asked questions">FAQ</a>
<a href="/#sec-takepart" title="Take&nbsp;part">Take&nbsp;part</a>
<a accesskey="1" href="{{ site.baseurl }}/" title="{% t base.menu.welcome %}">{% t base.menu.welcome %}</a>
<a href="{{ site.baseurl }}/#sec-hardfork" title="{% t base.menu.bigblocks %}">{% t base.menu.bigblocks %}</a>
<a href="{{ site.baseurl }}/patches.html" title="{% t base.menu.features %}">{% t base.menu.features %}</a>
<a accesskey="5" href="{{ site.baseurl }}/faq.html" title="{% t base.menu.faq.title %}">{% t base.menu.faq.text %}</a>
<a href="{{ site.baseurl }}/#sec-takepart" title="{% t base.menu.takepart %}">{% t base.menu.takepart %}</a>
</nav>
<div class="lang">
<a class="en" href="/{{ page.url | split:"/" | last }}" title="English">EN</a>
Expand Down