Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Need to support language defaults.
Comment | File | Size | Author |
---|---|---|---|
#7 | interdiff.txt | 3.96 KB | b_sharpe |
#7 | field_defaults-multilanguage-support-2848235-7.patch | 3.69 KB | b_sharpe |
#6 | field_defaults-multilanguage-support-2848235-6.patch | 2.95 KB | myLies |
#4 | field_defaults-multilanguage-support-2848235--4.patch | 1.96 KB | b_sharpe |
#4 | interdiff.txt | 1.48 KB | b_sharpe |
Comments
Comment #2
myLies CreditAttribution: myLies as a volunteer commentedComment #3
myLies CreditAttribution: myLies as a volunteer commentedAdded multilang support
Have a look)
Comment #4
b_sharpe CreditAttribution: b_sharpe at ImageX commentedThanks. You're missing support for 'LANGCODE_NOT_SPECIFIED' and 'LANGCODE_NOT_APPLICABLE'. I've attached patch + interdiff for that; however, I think we need to account for each language separately rather than blindly overwrite translations with the default entity language.
Either as an option as the D7 version does (see screenshot on project page), or applied directly to the field translation form (which I'm currently thinking is blocked by some other issues as you can't set default value as far as I can see)
Comment #5
myLies CreditAttribution: myLies as a volunteer commentedComment #6
myLies CreditAttribution: myLies as a volunteer commentedI added checking languages like in D7 version
but, I don't have idea what do with 'Not specified' and 'Not applicable' langs - so it could be set to
Comment #7
b_sharpe CreditAttribution: b_sharpe at ImageX commentedNeeded to check if both bundle and field are translatable, as well as act upon non-translatable content. Also updated a few inline phpdoc entries. I've run this through with several scenarios without error. Would love a second set of eyes on this to RTBC as this should allow a good alpha release
Comment #9
b_sharpe CreditAttribution: b_sharpe at ImageX commentedPutting this in to push out a release for more testing, thanks myLies!