As a common request around the web is to translate the entire Site Tree. Following the post on: https://www.silverstripe.org/customising-the-cms/show/7318 Which was made for SS 2.3.2, I’ve adopted the code to work with SilverStripe 3.0 (Tested on 3.0.5). It gives you the ability to select entire site tree, or just parts of it, and translate it to draft or to published site. You can find the entire extension code here: https://www.sspaste.com/paste/show/51484887b428a In order to make it work you need to have Translatable enabled, and add the following code to your _config.php:
CMSBatchActionHandler::register('Translate', 'CMSBatchActionTranslate'); CMSBatchActionHandler::register('TranslateAndPublish', 'CMSBatchActionTranslateAndPublish');
There still might be small bugs, but I’ll update the code as I fix them. Here’s the code in a .zip file. CMSBatchActionTranslate
Leave a Reply