Closed (fixed)
Project:
EU Cookie Compliance (GDPR Compliance)
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2016 at 18:20 UTC
Updated:
22 Oct 2022 at 11:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
skein commentedI might be wrong, but that's due to the boolean type is not translatable type in Drupal 8?
Comment #3
goodwillhinton commentedComment #4
killua99 commentedI've to check the documentation if boolean can be translatable.
Moving to dev also.
Comment #5
skein commentedIf you look at the core schema here:
http://cgit.drupalcode.org/drupal/tree/core/config/schema/core.data_type...
It only allows label, text and date_format to be translatable.
As I can see it you can either:
1/ Define your own data type which is an extension of the boolean type and is translatable
OR
2/ Use hook_config_schema_info_alter to alter the original one.
In both cases I feel that is work for another contrib module such as i18n to provide that functionality from a separation of responsibility point of view.
Comment #6
killua99 commentedSeems like to be a contrib (not eu_cookie_compliance) to handle the translation for booleans.
Comment #7
arijits.drushComment #8
arijits.drushComment #10
skein commentedNot sure that making binary (on/off) values a label is a proper solution.
Comment #11
killua99 commentedAlso it require the proper hook_update_N in case we approve this patch.
Comment #12
killua99 commentedI'm linking a Core issue, since is connected.
Comment #13
dpiThat patch makes absolutely no sense.
You want per-language configuration sets. This issue has nothing to do with translatability. See #12
Comment #14
svenryen commentedComment #15
svenryen commented@dpi, do you know of any module that helps in creating per-language configuration sets, or any module that has successfully implemented this? Any helper modules that we can make use of? Search on d.o for "per language config" returned nothing.
Adding some issues that I found on Google:
#2914987: Language-specific overrides support
#2275865: Per language settings (vs translated settings) are not directly supported
We could maybe cross-post to the core issue while working on this, or see if we can help
config_overridemove their issue to RTBC?We really need something along these lines for 2.x.
Comment #16
svenryen commentedWhen we get around to this issue, we can't use this approach, as turning the checkboxes into select buttons doesn't provide a very good user experience.
What I'd like to explore instead is a system based on entities and fields/properties where language is one property.
That should offer much more flexibility.
Comment #17
svenryen commentedComment #18
svenryen commentedThis is now resolved in 2.0.x.
Comment #19
svenryen commented