dash-docs/_layouts/base-en.html
Saivann 21441d310d Handle urls translations automatically in pages
Internal page urls are now all declared once in _config.yml for each language
Translators can translate file and anchor urls without needing to manually update all pages
2013-04-25 18:32:51 -04:00

91 lines
4.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
lang: en
menufor:
bitcoin-for-individuals: Individuals
bitcoin-for-businesses: Businesses
bitcoin-for-developers: Developers
bitcoin-for-enthusiasts: Enthusiasts
bitcoin-for-press: Press
menu:
how-it-works: How it works
vocabulary: Vocabulary
resources: Resources
community: Community
development: Development
foundation: Foundation
about: About
button:
wallet: Choose your wallet
know: You need to know
support: Support Bitcoin
footer: © Bitcoin Project 20092013 Released under the <a href="http://creativecommons.org/licenses/MIT/" target="_blank">MIT license</a>
---
<!DOCTYPE HTML>
<html lang="{{ page.lang }}">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta property="og:image" content="http://bitcoin.org/img/opengraph.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>{{ page.title }}</title>
{% lesscss main.less %}
<script type="text/javascript" src="/js/main.js"></script>
<link rel="shortcut icon" href="/favicon.png">
<link rel="apple-touch-icon-precomposed" href="/img/logo_ios.png"/>
</head>
<body>
{% if site.ALERT or site.ALERT_en %}
{% if site.ALERT_CLASS %}{% assign class = site.ALERT_CLASS%}{% endif %}{% if site.ALERT_CLASS_en %}{% assign class = site.ALERT_CLASS_en%}{% endif %}
{% if site.ALERT %}{% assign alert = site.ALERT%}{% endif %}{% if site.ALERT_en %}{% assign alert = site.ALERT_en%}{% endif %}
<div class="alert-message {{ class }}">
<div><div>{{ alert }}</div></div>
</div>
{% endif %}
<div id="head"><div>
<select id="langselect" onchange="window.location=this.value;">
{% for lang in site.langs %}{% assign la = lang[0]%}{% if lang[0] == page.lang %}{% assign active = ' selected="selected"'%}{% else %}{% assign active = ''%}{% endif %}
<option value="/{{ lang[0] }}/{{ site.section[page.id][la] }}"{{ active }}>{{ lang[1] }}</option>
{% endfor %}
</select>
<ul id="lang">
<li><a href="#" onclick="return false;">{{ site.langs[page.lang] }}</a>
<ul>
{% for lang in site.langs %}{% if lang[0] != page.lang %}{% assign la = lang[0]%}
<li><a href="/{{ lang[0] }}/{{ site.section[page.id][la] }}">{{ lang[1] }}</a></li>
{% endif %}{% endfor %}
</ul>
</li>
</ul>
<a id="logo" href="/{{ page.lang }}/"><img src="/img/logotop.svg" alt="Bitcoin"></a>
<a href="#" id="menumobile" onclick="mobileshow(event);"></a>
<ul id="menufor">
{% for link in page.menufor %}{% assign id = link[0]%}{% capture fullurl %}{{ '/' | append:page.lang | append:'/' | append:site.section[id][page.lang] | append:'.html' }}{% endcapture %}
<li{% if page.url == fullurl %} class="active"{% endif %}><a href="/{{ page.lang }}/{{ site.section[id][page.lang] }}">{{ link[1] }}</a></li>
{% endfor %}
</ul>
<ul id="menu">
{% for link in page.menu %}{% assign id = link[0]%}{% capture fullurl %}{{ '/' | append:page.lang | append:'/' | append:site.section[id][page.lang] | append:'.html' }}{% endcapture %}
<li{% if page.url == fullurl %} class="active"{% endif %}><a href="/{{ page.lang }}/{{ site.section[id][page.lang] }}">{{ link[1] }}</a></li>
{% endfor %}
</ul>
</div></div>
<div id="body">
<div id="content"{% if page.mode == "wide" %} class="wide"{% endif %}>
{{ content }}
</div>
<div id="rightbox"{% if page.mode == "wide" %} class="wide"{% endif %}>
<div id="choose">
<a href="/{{page.lang}}/{{site.section.choose-your-wallet[page.lang]}}"><img src="/img/but_start.svg" alt="{{page.button.wallet}}">{{page.button.wallet}}</a>
</div>
<div id="before">
<a href="/{{page.lang}}/{{site.section.you-need-to-know[page.lang]}}"><img src="/img/but_warn.svg" alt="{{page.button.know}}">{{page.button.know}}</a>
</div>
<div id="support">
<a href="/{{page.lang}}/{{site.section.support-bitcoin[page.lang]}}"><img src="/img/but_involve.svg" alt="{{page.button.support}}">{{page.button.support}}</a>
</div>
</div>
<div id="footer"><div>{{page.footer}}</div></div>
</div>
<script type="text/javascript">svgfallback();</script>
</body>
</html>