Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
migration system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Dec 2020 at 09:07 UTC
Updated:
28 Dec 2020 at 09:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
huzookaComment #3
huzookaComment #4
wim leersThis was introduced in #2970847: i18n Variable to config: system site settings [d7] .
Obviously this causes tests to fail. And #2970847: i18n Variable to config: system site settings [d7] introduced additional rows in the D7 DB fixture so that there would be values to migrate.
So while this may have been translatable in D7 (I did not verify this), it definitely is not translatable in D8|9. #1905152: Integrate config schema with locale, so shipped configuration is translated introduced the config schema translation infrastructure. And per the change record at https://www.drupal.org/node/1977368:
You can see this reflected in
core.data_types.schema.yml:but for example not on
And if we look at
system.schema.yml, we see:then the following stand out:
,
type: string,type: email,type: pathet cetera.This indeed means they're not translatable. Which confirms what @huzooka wrote in the issue summary:
In fact, when searching the web to find if there's an ongoing issue to make more things translatable, I stumbled upon @Gábor Hojtsy's blog post http://hojtsy.hu/blog/2014-may-26/drupal-8-multilingual-tidbits-16-confi..., which again says:
So: 👍for this patch!
I'll update the test expectations and will then RTBC this.
Comment #5
wim leersComment #6
alexpottCommitted and pushed c5eada7408 to 9.2.x and 6f5b187da5 to 9.1.x. Thanks!
Do we think that we could introduce something that could test all migrated translated configuration to ensure it only contains config that is translatable in Drupal 8/9?
Comment #9
wim leersInteresting idea! 🤔