public function __construct()
 {
     parent::__construct();
     add_filter('WPML_get_translatable_items', array($this, 'get_translatable_items'), 10, 3);
     add_filter('WPML_get_translatable_types', array($this, 'get_translatable_types'));
     add_filter('WPML_get_translatable_item', array($this, 'get_translatable_item'), 10, 2);
     add_filter('WPML_make_external_duplicate', array($this, 'make_duplicate'), 10, 2);
 }
 public function __construct()
 {
     parent::__construct();
     add_action('wpml_register_string_packages', array($this, 'register_missing_packages'), 10, 0);
     $migrated = get_option('gfml_pt_migr_comp');
     if (!$migrated) {
         if ($this->gravity_form_table_exists() && $this->has_post_gravity_from_translations()) {
             require 'gfml-migration.class.php';
             $migration_object = new GFML_Migration($this);
             $migration_object->migrate();
         }
         update_option('gfml_pt_migr_comp', true);
     }
 }