function init_plugin()
{
    global $iclTranslationManagement;
    $wpml_tm_trnaslate_independently = new WPML_TM_Translate_Independently($iclTranslationManagement);
    $wpml_tm_trnaslate_independently->init();
    $wpml_tm_trnaslate_independently_activation = new WPML_TM_Translate_Independently_Activation();
    $wpml_tm_trnaslate_independently_activation->init();
}
 private function translate_independently()
 {
     global $wpdb;
     if (isset($_GET['sm']) && 'basket' === $_GET['sm'] || defined('DOING_AJAX') && DOING_AJAX && isset($_POST['action']) && 'icl_disconnect_posts' === $_POST['action']) {
         $tb = new WPML_Translation_Basket($wpdb);
         $tri = new WPML_TM_Translate_Independently($this->tm_instance, $tb);
         $tri->init();
     }
 }