prefix . 'icl_translators_cached'); //$site_translators = TranslationManagement::get_blog_translators(array('from'=>$sitepress_settings['st']['strings_language'], 'to'=>$target)); //echo '
' . print_r($site_translators, 1) . ''; if((!isset($sitepress_settings['existing_content_language_verified']) || !$sitepress_settings['existing_content_language_verified']) /*|| 2 > count($sitepress->get_active_languages())*/){ return; } if(isset($_GET['trop']) && $_GET['trop'] > 0){ include dirname(__FILE__) . '/string-translation-translate-options.php'; return; } if(isset($_GET['status']) && preg_match("#".ICL_STRING_TRANSLATION_WAITING_FOR_TRANSLATOR."-(.+)#", $_GET['status'], $matches)){ $status_filter = ICL_STRING_TRANSLATION_WAITING_FOR_TRANSLATOR; $status_filter_lang = $matches[1]; }else{ $status_filter = isset($_GET['status']) ? intval($_GET['status']) : false; } $context_filter = isset($_GET['context']) ? $_GET['context'] : false; $search_filter = isset($_GET['search']) ? esc_html($_GET['search']) : false; $exact_match = isset($_GET['em']) ? $_GET['em'] == 1 : false; $icl_string_translations = icl_get_string_translations(); if(!empty($icl_string_translations)){ $icl_strings_in_page = icl_get_strigs_tracked_in_pages($icl_string_translations); } $active_languages = $sitepress->get_active_languages(); $icl_contexts = icl_st_get_contexts($status_filter); /* if($status_filter != ICL_STRING_TRANSLATION_COMPLETE){ $icl_contexts_translated = icl_st_get_contexts(ICL_STRING_TRANSLATION_COMPLETE); }else{ $icl_contexts_translated = $icl_contexts; } */ $icl_st_translation_enabled = $sitepress->icl_account_configured() && $sitepress->get_icl_translation_enabled(); $available_contexts = array(); if(!empty($icl_contexts)){ foreach($icl_contexts as $c){ if($c) $available_contexts[] = $c->context; } } if(!empty($sitepress_settings['st']['theme_localization_domains']) && is_array($sitepress_settings['st']['theme_localization_domains'])){ foreach($sitepress_settings['st']['theme_localization_domains'] as $c){ if($c) $available_contexts[] = 'theme ' . $c; } } $available_contexts = array_unique($available_contexts); if(empty($sitepress_settings['st']['strings_language'])){ $iclsettings['st']['strings_language'] = $sitepress_settings['st']['strings_language'] = $sitepress->get_default_language(); $sitepress->save_settings($iclsettings); } function _icl_string_translation_rtl_div($language) { if (in_array($language, array('ar','he','fa'))) { echo ' dir="rtl" style="text-align:right;direction:rtl;"'; } else { echo ' dir="ltr" style="text-align:left;direction:ltr;"'; } } function _icl_string_translation_rtl_textarea($language) { if (in_array($language, array('ar','he','fa'))) { echo ' dir="rtl" style="text-align:right;direction:rtl;width:100%"'; } else { echo ' dir="ltr" style="text-align:left;direction:ltr;width:100%"'; } } ?>
bottom of this screen. You can exclude individual strings by clearing the check boxes next to them.', 'wpml-string-translation'), '#add_po_strings_confirm'); ?>
' . htmlspecialchars($search_filter). '') ; ?>