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) # Disable English home page (for now)
location ^/en$ { return 301 $scheme://$host/de/; } location ^/en$ { return 301 $scheme://$host/de/; }
location ^/privacy$ { return 301 $scheme://$host/de/privacy; }
location / { location / {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;

View file

@ -69,6 +69,7 @@ $(document).ready(function() {
}); });
// Cookie notice via insites.com // Cookie notice via insites.com
var langbase = $('.language-nav a.active').text().toLowerCase();
window.cookieconsent.initialise({ window.cookieconsent.initialise({
"palette": { "palette": {
"popup": { "popup": {
@ -81,10 +82,16 @@ $(document).ready(function() {
}, },
"theme": "edgeless", "theme": "edgeless",
"content": { "content": {
"message": "Diese Website verwendet Cookies, um Ihnen eine optimale Nutzung unserer Website zu ermöglichen.", "message": langbase == 'fr' ?
"dismiss": "Zustimmen", "Ce site Web utilise des cookies pour vous permettre une utilisation optimale de notre site Web."
"link": "Weitere informationen", : "Diese Website verwendet Cookies, um Ihnen eine optimale Nutzung unserer Website zu ermöglichen.",
"href": "/privacy/" "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"> <div class="copyright">
&copy; 2018 Public Health Schweiz &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> &bull; Code by <a href="https://madewithwagtail.org/developers/dataletsch/" target="_blank">Datalets</a>
</div> </div>