public static function string_status_text_filter($text, $string_id) { if (TranslationProxy_Basket::is_string_in_basket_anywhere($string_id)) { $text = __('In the translation basket', 'wpml-translation-management'); } else { global $wpdb; $translation_service = $wpdb->get_var($wpdb->prepare("\tSELECT translation_service\n\t\t\t\t\t\tFROM {$wpdb->prefix}icl_string_translations\n\t\t\t\t\t\tWHERE\n\t\t\t\t\t\t string_id = %d\n\t\t\t\t\t\t\tAND translation_service > 0\n\t\t\t\t\t\t\tAND status IN (%d, %d)\n\t\t\t\t\t\tLIMIT 1\n\t\t\t\t\t\t", $string_id, ICL_TM_WAITING_FOR_TRANSLATOR, ICL_TM_IN_PROGRESS)); if ($translation_service) { $text = $text . " : " . sprintf(__('One or more strings sent to %s', 'wpml-translation-management'), TranslationProxy::get_service_name($translation_service)); } } return $text; }