You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you rescan a site multilingual section of a site from the Copy Languages page, (/index.php/dashboard/system/multilingual/copy/tree_copied) The page scans the site and informs you of it's progress. But if you use other blocks that link to internal pages, not all links are replaced with localised versions.
The site appears to rescan links added within content blocks only. Looking in /concrete/src/Multilingual/Page/Section/Processor/ReplaceContentLinksTask.php:24
The rescan locale method should rescan other blocks that can include links.
Potentially using the blocks $btExportPageColumns array.
Out of the box this will include the image slider block but would allow custom blocks that use that value to be scanned and replaced.
The text was updated successfully, but these errors were encountered:
I'm keen to work on this we have a potential multi site coming up and this would really help with the translation of the multiple languages, but I can't see a good way to loop over all the blocks without extracting data for each one and then saving it back in.
Would this be a case for running a DB query so that the rest of the data is not changed?
Or should it use the blocks controller to save format the data and save it back?
I guess I'm looking for a method that catches 80% of the blocks. I'd be grateful for any advice on a direction to take.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!
stalebot
added
the
Stale
Issues that have been inactive for more than 180 days and will soon be closed
label
Jul 6, 2020
If you rescan a site multilingual section of a site from the Copy Languages page, (/index.php/dashboard/system/multilingual/copy/tree_copied) The page scans the site and informs you of it's progress. But if you use other blocks that link to internal pages, not all links are replaced with localised versions.
The site appears to rescan links added within content blocks only. Looking in /concrete/src/Multilingual/Page/Section/Processor/ReplaceContentLinksTask.php:24
The rescan locale method should rescan other blocks that can include links.
Potentially using the blocks $btExportPageColumns array.
Out of the box this will include the image slider block but would allow custom blocks that use that value to be scanned and replaced.
The text was updated successfully, but these errors were encountered: