function scan_plugins_for_strings($no_echo = false) { require_once WPML_ST_PATH . '/inc/gettext/wpml-plugin-string-scanner.class.php'; $scan_for_strings = new WPML_Plugin_String_Scanner(wp_filesystem_init()); $scan_for_strings->scan($no_echo); }
function icl_st_track_string($text, $domain, $kind = ICL_STRING_TRANSLATION_STRING_TRACKING_TYPE_PAGE) { if (is_multisite() && ms_is_switched()) { return; } require_once dirname(__FILE__) . '/gettext/wpml-string-scanner.class.php'; static $string_scanner = null; if (!$string_scanner) { try { $wp_filesystem = wp_filesystem_init(); $string_scanner = new WPML_String_Scanner($wp_filesystem); } catch (Exception $e) { trigger_error($e->getMessage(), E_USER_WARNING); } } if ($string_scanner) { $string_scanner->track_string($text, $domain, $kind); } }