parent
c444db222f
commit
6a0b36a04e
@ -0,0 +1,28 @@ |
|||||||
|
# Contributing |
||||||
|
|
||||||
|
## Adding translations |
||||||
|
|
||||||
|
To translate the letter, copy `index.md` into `_translation/` |
||||||
|
and name it `index_lang.md` where `lang` is language code you are going to translate into. |
||||||
|
|
||||||
|
Then you can start translating this file. |
||||||
|
|
||||||
|
To display translation in the translations list, simply add `emoji` attribute to the document as follows: |
||||||
|
|
||||||
|
For example: `_translations/index_de.md` |
||||||
|
|
||||||
|
```md |
||||||
|
--- |
||||||
|
layout: signed |
||||||
|
... |
||||||
|
emoji: 🇩🇪 |
||||||
|
--- |
||||||
|
|
||||||
|
2021-03-23 |
||||||
|
|
||||||
|
Richard M. Stallman, ... |
||||||
|
``` |
||||||
|
|
||||||
|
There are lots of translation already, if you feel lost, be sure to check out how its done in other ones. |
||||||
|
|
||||||
|
When you translated the text, added emoji attribut you can commit your change and make pull request. |
@ -0,0 +1,16 @@ |
|||||||
|
<p><b>Signed:</b></p> |
||||||
|
<ol> |
||||||
|
{% capture signs %} |
||||||
|
{% for sign_hash in site.data.signed %} |
||||||
|
{% assign signature = sign_hash[1] %} |
||||||
|
|{{signature.name | escape }}#{{signature.link | escape }} |
||||||
|
{% endfor %} |
||||||
|
{% endcapture %} |
||||||
|
{% assign sorted_signs = signs | split: '|' | sort %} |
||||||
|
{% for signature in sorted_signs %} |
||||||
|
{% assign sign_items = signature | split: '#' %} |
||||||
|
{% if sign_items[0] and sign_items[1] %} |
||||||
|
<li><a href="{{ sign_items[1] | strip }}">{{ sign_items[0] | strip }}</a></li> |
||||||
|
{% endif %} |
||||||
|
{% endfor %} |
||||||
|
</ol> |
@ -1,23 +1,7 @@ |
|||||||
<div class="translations"> |
<div class="translations"> |
||||||
<p>Translations:</p> |
<p>Translations:</p> |
||||||
<a class="translation" href='/'>🇺🇸</a> |
<a class="translation" href='/'>🇺🇸</a> |
||||||
<a class="translation" href='/index_vi.html'>🇻🇳</a> |
{% for translation in site.translations %} |
||||||
<a class="translation" href='/index_zh_cn.html'>🇨🇳</a> |
<a class="translation" href="{{ translation.url }}">{{ translation.emoji }}</a> |
||||||
<a class="translation" href='/index_tr.html'>🇹🇷</a> |
{% endfor %} |
||||||
<a class="translation" href='/index_ro.html'>🇷🇴</a> |
|
||||||
<a class="translation" href='/index_es.html'>🇪🇸</a> |
|
||||||
<a class="translation" href='/index_pt_pt.html'>🇵🇹</a> |
|
||||||
<a class="translation" href='/index_pt_br.html'>🇧🇷</a> |
|
||||||
<a class="translation" href='/index_de.html'>🇩🇪</a> |
|
||||||
<a class="translation" href="/index_nl.html">🇳🇱</a> |
|
||||||
<a class="translation" href='/index_fr.html'>🇫🇷</a> |
|
||||||
<a class="translation" href='/index_pl.html'>🇵🇱</a> |
|
||||||
<a class="translation" href='/index_it.html'>🇮🇹</a> |
|
||||||
<a class="translation" href='/index_ko.html'>🇰🇷</a> |
|
||||||
<a class="translation" href='/index_ru.html'>🇷🇺</a> |
|
||||||
<a class="translation" href='/index_fa.html'>🇮🇷</a> |
|
||||||
<a class="translation" href='/index_ua.html'>🇺🇦</a> |
|
||||||
<a class="translation" href='/index_id.html'>🇮🇩</a> |
|
||||||
<a class="translation" href="/index_rs.html">🇷🇸</a> |
|
||||||
<a class="translation" href="/index_tl.html">🇵🇭</a> |
|
||||||
</div> |
</div> |
||||||
|
@ -1,5 +1,6 @@ |
|||||||
--- |
--- |
||||||
layout: signed |
layout: signed |
||||||
|
emoji: 🇮🇹 |
||||||
--- |
--- |
||||||
|
|
||||||
23-03-2021 |
23-03-2021 |
Loading…
Reference in new issue