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.
My best guess after reading the patch is that we could have an update function that calls locale_system_set_config_langcodes() and locale_translate_batch_refresh() after that. @Gábor Hojtsy, is that correct or do you have any other suggestion?
CreditAttribution: Gábor Hojtsy at Acquia commented
Well, default configuration did not change, how we handle Default configuration translations changed. If the site default language is different from English:
1. For each config file that was also a default config file (either required or optional), it should be switched from English to the site default.
2. Any config language overrides for those files should be merged into the active config itself and the override removed.
3. If English is configured on the site, any strings that were to be overwritten in 2 in active config should be written out to an English language override for the config file.
Comments
Comment #1
Gábor HojtsyComment #2
aspilicious CreditAttribution: aspilicious commentedComment #3
amateescu CreditAttribution: amateescu for Drupal Association commentedI've been reading the very detailed issue summary and change records for #2212069: Non-English Drupal sites get default configuration in English, edited in English, originals not actually used if translated but I don't see any actual change to a default config file so I'm not sure what exactly would we need to provide here as an upgrade path.
My best guess after reading the patch is that we could have an update function that calls
locale_system_set_config_langcodes()
andlocale_translate_batch_refresh()
after that. @Gábor Hojtsy, is that correct or do you have any other suggestion?Comment #4
Gábor HojtsyWell, default configuration did not change, how we handle Default configuration translations changed. If the site default language is different from English:
1. For each config file that was also a default config file (either required or optional), it should be switched from English to the site default.
2. Any config language overrides for those files should be merged into the active config itself and the override removed.
3. If English is configured on the site, any strings that were to be overwritten in 2 in active config should be written out to an English language override for the config file.
I think that is all.
Comment #5
amateescu CreditAttribution: amateescu for Drupal Association commentedThat's very useful info, thanks!
Comment #6
amateescu CreditAttribution: amateescu for Drupal Association commentedCommitted the patch attached to 8.x-1.x.
Thanks @Gábor Hojtsy, @alexpott and @Berdir for guiding me :)