Privacy notice in French

This commit is contained in:
Oleg Lavrovsky 2018-05-28 18:51:02 +02:00
parent e7bd554a25
commit 8956561220
3 changed files with 13 additions and 5 deletions

View file

@ -46,6 +46,7 @@ server {
# Disable English home page (for now)
location ^/en$ { return 301 $scheme://$host/de/; }
location ^/privacy$ { return 301 $scheme://$host/de/privacy; }
location / {
proxy_set_header X-Real-IP $remote_addr;

View file

@ -69,6 +69,7 @@ $(document).ready(function() {
});
// Cookie notice via insites.com
var langbase = $('.language-nav a.active').text().toLowerCase();
window.cookieconsent.initialise({
"palette": {
"popup": {
@ -81,10 +82,16 @@ $(document).ready(function() {
},
"theme": "edgeless",
"content": {
"message": "Diese Website verwendet Cookies, um Ihnen eine optimale Nutzung unserer Website zu ermöglichen.",
"dismiss": "Zustimmen",
"link": "Weitere informationen",
"href": "/privacy/"
"message": langbase == 'fr' ?
"Ce site Web utilise des cookies pour vous permettre une utilisation optimale de notre site Web."
: "Diese Website verwendet Cookies, um Ihnen eine optimale Nutzung unserer Website zu ermöglichen.",
"dismiss": langbase == 'fr' ?
"D'accord"
: "Zustimmen",
"link": langbase == 'fr' ?
"Pour plus d'informations"
: "Weitere informationen",
"href": "/" + langbase + "/privacy/"
}
});

View file

@ -31,7 +31,7 @@
<div class="copyright">
&copy; 2018 Public Health Schweiz
&bull; <a href="/privacy">Privacy Terms</a>
&bull; <a href="/privacy/">Privacy Terms</a>
&bull; Code by <a href="https://madewithwagtail.org/developers/dataletsch/" target="_blank">Datalets</a>
</div>