Skip to content

Commit

Permalink
Resolve merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop committed Mar 26, 2021
1 parent c444db2 commit 6a0b36a
Show file tree
Hide file tree
Showing 24 changed files with 72 additions and 61 deletions.
28 changes: 28 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -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.
7 changes: 7 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ url: "https://rms-support-letter.github.io"
github_username: rms-support-letter
repository: rms-support-letter/rms-support-letter.github.io

collections:
translations:
output: true
permalink: /:name:output_ext


# Build settings
theme: minima

Expand All @@ -20,4 +26,5 @@ exclude:
- vendor/gems/
- vendor/ruby/
- migrate.py
- CONTRIBUTING.md
- README*.md
16 changes: 16 additions & 0 deletions _includes/signatures.html
Original file line number Diff line number Diff line change
@@ -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>
22 changes: 3 additions & 19 deletions _includes/translations.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
<div class="translations">
<p>Translations:</p>
<a class="translation" href='/'>🇺🇸</a>
<a class="translation" href='/index_vi.html'>🇻🇳</a>
<a class="translation" href='/index_zh_cn.html'>🇨🇳</a>
<a class="translation" href='/index_tr.html'>🇹🇷</a>
<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>
{% for translation in site.translations %}
<a class="translation" href="{{ translation.url }}">{{ translation.emoji }}</a>
{% endfor %}
</div>
22 changes: 1 addition & 21 deletions _layouts/signed.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,4 @@

{{ content }}

<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>
{% include signatures.html %}
22 changes: 1 addition & 21 deletions _layouts/signed_rtl.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,4 @@
{{ content }}
</div>

<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>
{% include signatures.html %}
1 change: 1 addition & 0 deletions index_de.md → _translations/index_de.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ image: /assets/social-media-preview.png
locale: de_DE
twitter:
card: summary_large_image
emoji: 🇩🇪
---

2021-03-23
Expand Down
1 change: 1 addition & 0 deletions index_es.md → _translations/index_es.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ image: /assets/social-media-preview.png
locale: es_ES
twitter:
card: summary_large_image
emoji: 🇪🇸
---

2021-03-23
Expand Down
1 change: 1 addition & 0 deletions index_fa.md → _translations/index_fa.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ image: /assets/social-media-preview.png
locale: fa_IR
twitter:
card: summary_large_image
emoji: 🇮🇷
---

۱۴۰۰/۱/۳
Expand Down
1 change: 1 addition & 0 deletions index_fr.md → _translations/index_fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ image: /assets/social-media-preview.png
locale: fr_FR
twitter:
card: summary_large_image
emoji: 🇫🇷
---

2021-03-23
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions index_it.md → _translations/index_it.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: signed
emoji: 🇮🇹
---

23-03-2021
Expand Down
1 change: 1 addition & 0 deletions index_ko.md → _translations/index_ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ image: /assets/social-media-preview.png
locale: ko_KR
twitter:
card: summary_large_image
emoji: 🇰🇷
---

2021-03-23
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions index_pl.md → _translations/index_pl.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ image: /assets/social-media-preview.png
locale: pl_PL
twitter:
card: summary_large_image
emoji: 🇵🇱
---

2021-03-23
Expand Down
1 change: 1 addition & 0 deletions index_pt_br.md → _translations/index_pt_br.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ image: /assets/social-media-preview.png
locale: pt_BR
twitter:
card: summary_large_image
emoji: 🇧🇷
---

2021-03-23
Expand Down
1 change: 1 addition & 0 deletions index_ro.md → _translations/index_ro.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ image: /assets/social-media-preview.png
locale: ro_RO
twitter:
card: summary_large_image
emoji: 🇷🇴
---

2021-03-23
Expand Down
1 change: 1 addition & 0 deletions index_rs.md → _translations/index_rs.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ image: /assets/social-media-preview.png
locale: sr_RS
twitter:
card: summary_large_image
emoji: 🇷🇸
---

2021-03-23
Expand Down
1 change: 1 addition & 0 deletions index_ru.md → _translations/index_ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ image: /assets/social-media-preview.png
locale: ru_RU
twitter:
card: summary_large_image
emoji: 🇷🇺
---

2021-03-23
Expand Down
1 change: 1 addition & 0 deletions index_tl.md → _translations/index_tl.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ image: /assets/social-media-preview.png
locale: tl
twitter:
card: summary_large_image
emoji: 🇵🇭
---

2021-03-23
Expand Down
1 change: 1 addition & 0 deletions index_tr.md → _translations/index_tr.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ image: /assets/social-media-preview.png
locale: tr_TR
twitter:
card: summary_large_image
emoji: 🇹🇷
---

2021-03-23
Expand Down
1 change: 1 addition & 0 deletions index_ua.md → _translations/index_ua.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ image: /assets/social-media-preview.png
locale: uk_UA
twitter:
card: summary_large_image
emoji: 🇺🇦
---

2021-03-23
Expand Down
1 change: 1 addition & 0 deletions index_vi.md → _translations/index_vi.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ image: /assets/social-media-preview.png
locale: vi_VN
twitter:
card: summary_large_image
emoji: 🇻🇳
---

2021-03-23
Expand Down
1 change: 1 addition & 0 deletions index_zh_cn.md → _translations/index_zh_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ image: /assets/social-media-preview.png
locale: zh_CN
twitter:
card: summary_large_image
emoji: 🇨🇳
---

2021-03-23
Expand Down

0 comments on commit 6a0b36a

Please sign in to comment.