WEB: Extract the cookie consent text into the translation files

This commit is contained in:
Matan Bareket authored and Lothar Serra Mari committed 2018-08-27 19:43:18 +02:00
1 parent ece60acf55
commit 5cdbebd475
2 files changed
+7 -2

No files matched your search

+5
View File
@@ -416,3 +416,8 @@ Currently both subprojects are still in a state only suitable for
developers... so if you can't compile the code yourself, then these are
not really ready for you.
"""
# cookie.tpl
cookieText = "We use cookies to enhance content and analyze information on site performance and usage."
cookieAccept = "Allow Cookies"
cookieDecline = "Refuse Cookies"
+2 -2
View File
@@ -1,7 +1,7 @@
<div class="cookie-consent">
<div class="middle">
<span class="text">We use cookies to enhance content and analyze information on site performance and usage.</span>
<span class="buttons"><a class="accept" onclick="cookie_consent(true)">Allow Cookies</a><a onclick="cookie_consent(false)">Refuse Cookies</a></span>
<span class="text">{#cookieText#}</span>
<span class="buttons"><a class="accept" onclick="cookie_consent(true)">{#cookieAccept#}</a><a onclick="cookie_consent(false)">{#cookieDecline#}</a></span>
</div>
</div>