private function set_packages_language($package_ids, $lang)
 {
     foreach ($package_ids as $package_id) {
         if ($package_id) {
             $package = new WPML_Package($package_id);
             $package->set_strings_language($lang);
             $package_job = new WPML_Package_TM($package);
             $package_job->set_language_details($lang);
         }
     }
 }
 function __destruct()
 {
     parent::__destruct();
 }
 /**
  * @param WPML_Package $package
  */
 private function maybe_update_package($package)
 {
     if ($package->new_title) {
         $package->title = $package->new_title;
         $package->update_package_record();
     }
 }