function wpml_tm_load_status_display_filter()
{
    global $wpml_tm_status_display_filter, $wpml_post_translations, $iclTranslationManagement, $sitepress, $wpdb;
    $blog_translators = wpml_tm_load_blog_translators();
    $tm_api = new WPML_TM_API($blog_translators, $iclTranslationManagement);
    $tm_api->init_hooks();
    if (!isset($wpml_tm_status_display_filter)) {
        $status_helper = wpml_get_post_status_helper();
        $job_factory = wpml_tm_load_job_factory();
        $wpml_tm_status_display_filter = new WPML_TM_Translation_Status_Display($wpdb, $sitepress, $wpml_post_translations, $status_helper, $job_factory, $tm_api);
    }
    $wpml_tm_status_display_filter->init();
}
 /**
  * @param string $lang
  *
  * @return bool
  */
 private function is_lang_pair_allowed($lang)
 {
     return $this->tm_api->is_translator_filter(false, $this->sitepress->get_wp_api()->get_current_user_id(), array('lang_from' => $this->sitepress->get_current_language(), 'lang_to' => $lang, 'admin_override' => $this->is_current_user_admin()));
 }