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.
Comment | File | Size | Author |
---|---|---|---|
#7 | 2038285-config-schema-date-format-7.patch | 2.76 KB | Gábor Hojtsy |
#5 | 2038285-config-schema-date-format-5.patch | 2.14 KB | vijaycs85 |
#5 | 2038285-diff-2-5.txt | 499 bytes | vijaycs85 |
#2 | 2038385-config-schema-date-format-2.patch | 2.15 KB | vijaycs85 |
#2 | 2038385-diff-1-2.txt | 1.01 KB | vijaycs85 |
Comments
Comment #1
Gábor HojtsyHere 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.
Comment #2
vijaycs85Updating with few label changes and config_inspector screenshot.
Comment #3
vijaycs85After 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.
Comment #4
Gábor HojtsyReviewed #2
Can we make this "Languages" on the user interface and here too? Its not localizations as all...
Comment #5
vijaycs85Updated label in schema here and created new issue for form label update: #2040123: Update 'Select localizations' label in DateFormat to 'Languages'
Comment #6
Gábor HojtsyYay! Looks good!
Comment #7
Gábor HojtsyMerged 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.
Comment #8
vijaycs85Looks good to me.
Comment #9
alexpottCommitted 92f74b2 and pushed to 8.x. Thanks!
Comment #11
Gábor HojtsyRemoving sprint tag.