i18n proof of concept
This commit is contained in:
parent
e10fef5497
commit
a58b5811aa
5
_data/lang/en/kdl.json
Normal file
5
_data/lang/en/kdl.json
Normal 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
4
_data/lang/it/kdl.json
Normal 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
6
_includes/content/kdl.md
Normal 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
12
i18ntest.html
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<div class="content">
|
||||
|
||||
{% capture kdl %}
|
||||
{% include content/kdl.md lang="it" %}
|
||||
{% endcapture %}
|
||||
{{ kdl | markdownify }}
|
||||
|
||||
</div>
|
Reference in New Issue
Block a user