Closed (fixed)
Project:
EU Cookie Compliance (GDPR Compliance)
Version:
8.x-1.20-beta1
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 May 2022 at 20:04 UTC
Updated:
22 Oct 2022 at 12:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kevinquillen commentedComment #3
kevinquillen commentedI had to do the following:
My custom theme .theme:
Twig template (excerpt):
Comment #4
svenryen commentedThanks for the snippets. I'm classifying this as a "Feature request" since it seems to break existing sites if we change this value in the module form.
Just out of curiosity, I'm able to translate the html strings (although in plain text showing html tags), what version of Drupal are you using? Has there been a core change somewhere that prevents translation of markup fields?
Comment #5
kevinquillen commentedWhat is 'in plain text'? I can't even select plain text format on the settings form. Any attempt at translating this is an exception:
If I grant plain text as usable with CKEditor, then you get an editor chrome and its just weird. Even if I do, I can't select plain text. So how do you select plain text?
Comment #6
svenryen commentedOn the translation page I have a field that is shown as a textarea with html tags included. Upon changing the value and saving, I don't get any error message or exception.
For example, I can open this page:
admin/config/system/eu-cookie-compliance/settings/translate/en/addAnd there I have this field (among others):
Comment #7
kevinquillen commentedThat page just gives a 404. How do you get that route? I don't see any mention of 'translate' or 'translation' in the codebase. This is Drupal 9.
Comment #8
svenryen commentedYou have enabled the Configuration Translation module? Normally if you have the "en" language added and the module is enabled, you should get this path.
What languages are set up for your site?
Comment #9
svenryen commentedComment #10
svenryen commentedWe have a better solution for translations in 2.0.x.