Problem

In #2003892: Convert date formats to config entities, the date formats have been moved from system.date.yml to their own config entity files. We need to cover this in config schema.

1. Remove date format related pieces from system.date.yml config.
2. Introduce config schema for date formats.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Gábor Hojtsy’s picture

Status: Active » Needs review
Issue tags: +sprint
FileSize
2.04 KB

Here is a quick first pass. I did not check if it works or not :) I propose we do not keep the separate data type, since we don't need to reuse it elsewhere and now the date format itself is a config entity, so it is a data type in itself.

vijaycs85’s picture

Updating with few label changes and config_inspector screenshot.

vijaycs85’s picture

After discussed with @Gábor Hojtsy on IRC and looked at DateFormat.php, found that D8 supports only two patterns DrupalDateTime::PHP and DrupalDateTime::INTL and both will be string. So updating pattern to work for both without any date_format.pattern.php or date_format.pattern.intl

Ignore this patch. patch in #2 is the correct one.

Gábor Hojtsy’s picture

Status: Needs review » Needs work

Reviewed #2

+++ b/core/modules/system/config/schema/system.schema.ymlundefined
@@ -90,12 +90,45 @@ system.date:
+      label: 'Select localizations'

Can we make this "Languages" on the user interface and here too? Its not localizations as all...

vijaycs85’s picture

Status: Needs work » Needs review
FileSize
499 bytes
2.14 KB

Updated label in schema here and created new issue for form label update: #2040123: Update 'Select localizations' label in DateFormat to 'Languages'

Gábor Hojtsy’s picture

Status: Needs review » Reviewed & tested by the community

Yay! Looks good!

Gábor Hojtsy’s picture

Issue tags: +blocker
FileSize
2.76 KB

Merged with #2040123: Update 'Select localizations' label in DateFormat to 'Languages' since it uses the same labeling and the two committed separately may have a problem of introducing UI inconsistencies. Still RTBC since that was also RTBC.

Also marking a blocker of config translation (#1952394: Add configuration translation user interface module in core) because this cannot yet be integrated with that until the schemas are fixed.

vijaycs85’s picture

Looks good to me.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 92f74b2 and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

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

Gábor Hojtsy’s picture

Issue tags: -sprint

Removing sprint tag.