SilverStripe 3.0 – Batch Translate

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

Comments

One response to “SilverStripe 3.0 – Batch Translate”

  1. Free Guide to Picking up women on online dating Avatar
    Free Guide to Picking up women on online dating

    I just like the valuable info you provide on your articles. I will bookmark your weblog and check again here regularly. I am slightly sure I’ll be informed many new stuff right right here! Best of luck for the next!

Leave a Reply

Your email address will not be published. Required fields are marked *