Yesterday I tried updating from 8.x-1.0-beta3 to 8.x-1.0-beta7. I am now seeing a translate tab and can add translation strings for each language. However, I am unable to set the "Enable Popup" status individually for each language now. This is a big problem as I have 30+ languages and only a subset are in the EU.

Drupal 8.1.10
Server: Acquia
PHP: 5.6.24

Comments

goodwillhinton created an issue. See original summary.

skein’s picture

I might be wrong, but that's due to the boolean type is not translatable type in Drupal 8?

goodwillhinton’s picture

Priority: Normal » Major
killua99’s picture

Version: 8.x-1.0-beta7 » 8.x-1.x-dev
Status: Active » Needs work

I've to check the documentation if boolean can be translatable.

Moving to dev also.

skein’s picture

If 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.

killua99’s picture

Seems like to be a contrib (not eu_cookie_compliance) to handle the translation for booleans.

arijits.drush’s picture

arijits.drush’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 7: Enable_popup_should_be_translatable-test_only.patch, failed testing.

skein’s picture

Not sure that making binary (on/off) values a label is a proper solution.

killua99’s picture

Also it require the proper hook_update_N in case we approve this patch.

killua99’s picture

I'm linking a Core issue, since is connected.

dpi’s picture

Title: Enable popup should be translatable » 'Enable Popup' should be configurable per language
Category: Bug report » Feature request

That patch makes absolutely no sense.

You want per-language configuration sets. This issue has nothing to do with translatability. See #12

svenryen’s picture

Priority: Major » Normal
svenryen’s picture

Title: 'Enable Popup' should be configurable per language » [2.x] Per-language config sets

@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_override move their issue to RTBC?

We really need something along these lines for 2.x.

svenryen’s picture

When 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.

svenryen’s picture

Version: 8.x-1.x-dev » 2.0.x-dev
svenryen’s picture

Issue summary: View changes
Status: Needs work » Fixed
StatusFileSize
new53.5 KB

This is now resolved in 2.0.x.

svenryen’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.