Add translations to the main site (+markdown transition) [DON'T MERGE] #621

Closed
ghost wants to merge 22 commits from i18n into master
4 changed files with 27 additions and 0 deletions
Showing only changes of commit a58b5811aa - Show all commits

5
_data/lang/en/kdl.json Normal file
View File

@ -0,0 +1,5 @@
{
"title": "Key Disclosure Law",
"subtitle": "Who is required to hand over the encryption keys to authorities?",
"description": "Mandatory key disclosure laws require individuals to turn over encryption keys to law enforcement conducting a criminal investigation. How these laws are implemented (who may be legally compelled to assist) vary from nation to nation, but a warrant is generally required. Defenses against key disclosure laws include steganography and encrypting data in a way that provides plausible deniability.\n\nSteganography involves hiding sensitive information (which may be encrypted) inside of ordinary data (for example, encrypting an image file and then hiding it in an audio file). With plausible deniability, data is encrypted in a way that prevents an adversary from being able to prove that the information they are after exists (for example, one password may decrypt benign data and another password, used on the same file, could decrypt sensitive data)."
}

4
_data/lang/it/kdl.json Normal file
View File

@ -0,0 +1,4 @@
{
"title": "Key Disclosure Law (but in Italian)",
"description": "Mandatory key disclosure laws require individuals to turn over encryption keys to law enforcement conducting a criminal investigation. How these laws are implemented (who may be legally compelled to assist) vary from nation to nation, but a warrant is generally required. Defenses against key disclosure laws include steganography and encrypting data in a way that provides plausible deniability.\n\nSteganography involves hiding sensitive information (which may be encrypted) inside of ordinary data (for example, encrypting an image file and then hiding it in an audio file). With plausible deniability, data is encrypted in a way that prevents an adversary from being able to prove that the information they are after exists (for example, one password may decrypt benign data and another password, used on the same file, could decrypt sensitive data). (but in Italian)"
}

6
_includes/content/kdl.md Normal file
View File

@ -0,0 +1,6 @@
{% assign lang = site.data.lang.[include.lang].kdl %}
{% assign english = site.data.lang.en.kdl %}
# {{ lang.title | default: english.title }}
## {{ lang.subtitle | default: english.subtitle }}
{{ lang.description | default: english.description }}

12
i18ntest.html Normal file
View File

@ -0,0 +1,12 @@
---
layout: default
---
<div class="content">
{% capture kdl %}
{% include content/kdl.md lang="it" %}
{% endcapture %}
{{ kdl | markdownify }}
</div>