Skip to content

Commit 3d5a4ac

Browse files
bitschmidtyjnewbery
authored andcommitted
Add translations page
1 parent ad61f00 commit 3d5a4ac

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

_includes/functions/localization-finder.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% assign localization = "/" | append: lang.code | append:baseurl %}
66
{% assign locale = site.posts | where:"permalink", localization %}
77
{% if locale.size == 0 %}
8-
| <span title="No {{lang.name}} translation currently available">{{ lang.code }}</span>
8+
| <a href="/translations/" title="No {{lang.name}} translation currently available" class="no-translation">{{ lang.code }}</a>
99
{% else %}
1010
| <a href="{{ locale[0].url }}">{{lang.code}}</a>
1111
{% endif %}

assets/css/main.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,9 @@ div.localization
250250
{
251251
text-align: right;
252252

253-
span {
253+
a.no-translation {
254254
font-style: italic;
255255
color:gray;
256-
cursor: not-allowed;
257256
}
258257
}
259258

translations.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
layout: page
3+
title: Translations
4+
permalink: /translations/
5+
---
6+
7+
The translation for this newsletter is not available yet. If you'd like to help
8+
translate or review, please see our [CONTRIBUTING.md][github contributing] file
9+
for details. For any questions, please email [[email protected]][optech
10+
email]. In the meantime, you can view our existing publications.
11+
12+
<ul>
13+
<li><a href="/en/publications/">English</a></li>
14+
{% for lang in site.languages %}
15+
<li><a href="/{{ lang.code }}/publications/">{{lang.name}}</a></li>
16+
{% endfor %}
17+
</ul>
18+
19+
{% include references.md %}
20+
[github contributing]: https://github.com/bitcoinops/bitcoinops.github.io/blob/master/CONTRIBUTING.md#translations

0 commit comments

Comments
 (0)