erreeme
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Datepicker] Different rules for 2 different datepickersIt would be a good idea to clarify this somewhere in the plugin page, at least.
Good point and my fault as a non-coder. The buttons are showing the right label now.
Any chance to change the “Settings” label? It′s translated into Spanish but not into Basque (it should be “Konfigurazioa”). Is this something that can be done in my side?
There are labels in the cookie panel that are not translated / translatable into Basque, either: “Cookie declaration”, “About cookies”, “Name”, “Provider, “Purpose”, “Expiry” and “Type”. The content of the cookie table (purposes) neither.
Is this something I can change through the XML custom template?
And despite the “Unclassified cookies introduction” box allows for translation in the “Content tab” of the Cookiebot settings panel, the output is getting the English default “We do not use cookies of this type”.
I would be happy to provide Basque translations if required.
The console output:
When loading https://www.domain.org/ –> setting currentUserPageCulture: es
When loading https://www.domain.org/eu/ –> setting currentUserPageCulture: eu
When loading https://www.domain.org/en/ –> setting currentUserPageCulture: enThis shows the popups in the right languages:
var currentUserPagePathname = location.pathname.toLowerCase(); var currentUserPageCulture = "es"; //default to Spanish if (currentUserPagePathname.indexOf("/eu")==0) { currentUserPageCulture = "eu"; //Basque } else if (currentUserPagePathname.indexOf("/en")==0) { currentUserPageCulture = "en"; //English }
But this is not working:
window.addEventListener('CookiebotOnDialogInit', function(e) { if (currentUserPageCulture = "es") { CookiebotDialog.multiAcceptText = "ACEPTO"; //Spanish } else if (currentUserPageCulture = "eu") { CookiebotDialog.multiAcceptText = "ONARTU"; //Basque } else { CookiebotDialog.multiAcceptText = "ACCEPT"; //English } }, false);
The “OK” label is replaced in every popup by the first occurrence of
CookiebotDialog.multiAcceptText
, no matter what itscurrentUserPageCulture
value is.With the above snippet, all popups show “ACEPTO”.
Changing the code to
if (currentUserPageCulture = "eu") { CookiebotDialog.multiAcceptText = "ONARTU"; //Basque } else if (currentUserPageCulture = "es") { CookiebotDialog.multiAcceptText = "ACEPTO"; //Spanish } else { CookiebotDialog.multiAcceptText = "ACCEPT"; //English
leads to all the popups showing “ONARTU”.
- This reply was modified 6 years, 1 month ago by erreeme.
Done.
I don′t know if this helps, but Basque content is /eu/ directory and all “sons” directories hanging from this, and Spanish is the root directory (/) and all directories hanging from / with the exception of /eu/ and its “sons”.
We are using
if (currentUserPagePathname.indexOf("/es")==0) { currentUserPageCulture = "es"; //Spanish }
which is actually not accurate. There is no /es directory.
Hi, @cookiebot
Applying those changes at the same time leads to the wrong behaviour of the Basque popup being showed in the root domain https://www.mydomain.com, instead of Spanish (this would be the desired behaviour, Spanish in root and Basque in https://www.mydomain.com/eu.
Adding the .dialog property does not change anything. The button label keeps being “OK” and the Settings label keeps being “Configuraciones” in the Spanish popup (which is not translatable but would be acceptable) and “Settings” in the Basque popup (which is not Basque, actually).
After changes and before testing, browser cache and cookies are deleted every time. There is no cache plugin.
- This reply was modified 6 years, 1 month ago by erreeme.
Thank you for you prompt response.
I must be missing something. This is what I have in mi GTM tag, but the popup still shows the default “OK”:
<script> var CookiebotScriptContainer = document.getElementsByTagName('script')[0]; var CookiebotScript = document.createElement("script"); CookiebotScript.type = "text/javascript"; CookiebotScript.id = "Cookiebot"; CookiebotScript.src = "https://consent.cookiebot.com/uc.js?cbid=OBFUSCATED"; var currentUserPagePathname = location.pathname.toLowerCase(); var currentUserPageCulture = "en"; //default to English if (currentUserPagePathname.indexOf("/es")==0) { currentUserPageCulture = "es"; //Spanish } else if (currentUserPagePathname.indexOf("/eu")==0) { currentUserPageCulture = "eu"; //Basque } CookiebotScript.setAttribute("data-culture", currentUserPageCulture); CookiebotScriptContainer.parentNode.insertBefore(CookiebotScript, CookiebotScriptContainer); function CookiebotCallback_OnAccept() { if (Cookiebot.consent.preferences) dataLayer.push({'event':'cookieconsent_preferences'}); if (Cookiebot.consent.statistics) dataLayer.push({'event':'cookieconsent_statistics'}); if (Cookiebot.consent.marketing) dataLayer.push({'event':'cookieconsent_marketing'}); } window.addEventListener('CookiebotCallback_OnDialogInit', function (e) { if (currentUserPageCulture = "es") { CookiebotDialog.multiAcceptText = "ACEPTAR"; //Spanish } else if (currentUserPageCulture = "eu") { CookiebotDialog.multiAcceptText = "ONARTU"; //Basque } else { CookiebotDialog.multiAcceptText = "OK, LET′S GO"; //Other for test purposes } }, false); </script>
- This reply was modified 6 years, 2 months ago by erreeme.
Hi, Marcus,
Any update on this issue?
Hi, Olidel,
I wouldn′t say it′s the same issue, IMHO. In my case, the links work properly. It′s the redirection after login what is not working as set in the LWA configuration boxes.
Cheers,
Thank you Marcus.
I′ll look forward to hearing from you.
With “only works for language 1” I mean that login with language 1 works OK, but login with language 2 redirects to the URL set in the textbox for language 1.