get_default_language(); } if(!isset($icl_translation_filter['to_lang'])){ $icl_translation_filter['to_lang'] = isset($_GET['to_lang'])?$_GET['to_lang']:''; } if($icl_translation_filter['to_lang'] == $icl_translation_filter['from_lang']){ $icl_translation_filter['to_lang'] = false; } if(!isset($icl_translation_filter['tstatus'])){ $icl_translation_filter['tstatus'] = isset($_GET['tstatus'])?$_GET['tstatus']:'not'; } if(!isset($icl_translation_filter['status_on']) || !$icl_translation_filter['status_on']){ $icl_translation_filter['status_on'] = isset($_GET['status_on']) ? $_GET['status_on'] : false; if(!$icl_translation_filter['status_on']){ unset($icl_translation_filter['status']); } } if(!isset($icl_translation_filter['type_on']) || !$icl_translation_filter['type_on']){ $icl_translation_filter['type_on'] = isset($_GET['type_on']) ? $_GET['type_on'] : false; if(!$icl_translation_filter['type_on']){ unset($icl_translation_filter['type']); } } if(!isset($icl_translation_filter['title_on']) || !$icl_translation_filter['title_on']){ $icl_translation_filter['title_on'] = isset($_GET['title_on']) ? $_GET['title_on'] : false; if(!$icl_translation_filter['title_on']){ unset($icl_translation_filter['title']); } } if(!isset($icl_translation_filter['sort_by']) || !$icl_translation_filter['sort_by']){ $icl_translation_filter['sort_by'] = 'p.post_date';} if(!isset($icl_translation_filter['sort_order']) || !$icl_translation_filter['sort_order']){ $icl_translation_filter['sort_order'] = 'DESC';} $sort_order_next = $icl_translation_filter['sort_order'] == 'ASC' ? 'DESC' : 'ASC'; $title_sort_link = 'admin.php?page='.ICL_PLUGIN_FOLDER.'/menu/translation-management.php&sm=dashboard&icl_tm_action=sort&sort_by=p.post_title&sort_order='.$sort_order_next; $date_sort_link = 'admin.php?page='.ICL_PLUGIN_FOLDER.'/menu/translation-management.php&sm=dashboard&icl_tm_action=sort&sort_by=p.post_date&sort_order='.$sort_order_next; $icl_post_statuses = array( 'publish' =>__('Published', 'sitepress'), 'draft' =>__('Draft', 'sitepress'), 'pending' =>__('Pending Review', 'sitepress'), 'future' =>__('Scheduled', 'sitepress') ); $icl_post_types = $sitepress->get_translatable_documents(); $icl_dashboard_settings = $sitepress_settings['dashboard']; $icl_translation_filter['limit_no'] = isset($_GET['show_all']) && $_GET['show_all'] ? 10000 : ICL_TM_DOCS_PER_PAGE; $icl_documents = $iclTranslationManagement->get_documents($icl_translation_filter); $icl_translators = $iclTranslationManagement->get_blog_translators(); if(!empty($iclTranslationManagement->dashboard_select)){ $icl_selected_posts = (array)$iclTranslationManagement->dashboard_select['post']; $icl_selected_languages = (array)$iclTranslationManagement->dashboard_select['translate_to']; $icl_selected_translators = (array)$iclTranslationManagement->dashboard_select['translator']; } if(!empty($sitepress_settings['default_translators'][$icl_translation_filter['from_lang']])){ foreach($sitepress_settings['default_translators'][$icl_translation_filter['from_lang']] as $_tolang => $tr){ if($iclTranslationManagement->translator_exists($tr['id'], $icl_translation_filter['from_lang'], $_tolang, $tr['type'])){ $icl_selected_translators[$_tolang] = $tr['type'] == 'local' ? $tr['id'] : $tr['id'] . '-' . $tr['type']; } } } foreach($sitepress->get_active_languages()as $lang){ if(empty($icl_selected_translators[$lang['code']]) && is_array($sitepress_settings['icl_lang_status'])){ foreach($sitepress_settings['icl_lang_status'] as $lpair){ if($lpair['from']==$icl_translation_filter['from_lang'] && $lpair['to']==$lang['code'] && !empty($lpair['translators'])){ $icl_selected_translators[$lang['code']] = $lpair['translators']['0']['id'] . '-icanlocalize'; } } } } $icl_translation_services = apply_filters('icl_translation_services', array()); if (!empty($icl_translation_services)) { $icls_output = ''; $icls_output .= '
'; foreach ($icl_translation_services as $key => $service) { $icls_output .= '
'; $icls_output .= '' . $service['name'] . ''; $icls_output .= '

' . $service['description'] . '

'; $icls_output .= '' . __('Get quote','sitepress') . ' '; $icls_output .= isset($service['setup_url_dashboard']) ? '' . $service['setup_url_dashboard'][0] . '' : ''; $icls_output .= '
'; } $icls_output .= '
'; } ?>
   





get_active_languages() as $lang): if($lang['code']==$icl_translation_filter['from_lang']) continue;?> get_active_languages() as $lang): if($lang['code']==$icl_translation_filter['from_lang']) continue;?> class="alternate"> needs_update ? ICL_TM_NEEDS_UPDATE : intval($doc->status); ?> get_active_languages() as $lang): if($lang['code']==$icl_translation_filter['from_lang']) continue;?> $_prop_st)){ case ICL_TM_NOT_TRANSLATED : $tst_title = esc_attr(__('Not translated','sitepress')); break; case ICL_TM_WAITING_FOR_TRANSLATOR : $tst_title = esc_attr(__('Waiting for translator','sitepress')); break; case ICL_TM_IN_PROGRESS : $tst_title = esc_attr(__('In progress','sitepress')); break; case ICL_TM_COMPLETE : $tst_title = esc_attr(__('Complete','sitepress')); break; default: $tst_title = ''; } $docst = ($doc->$_prop_up && $icl_translation_filter['tstatus']=='not') ? ICL_TM_NEEDS_UPDATE : intval($doc->$_prop_st); if($doc->$_prop_up){ $tst_title .= ' - ' . esc_attr(__('needs update','sitepress')); } ?>
/>     note <?php echo $icl_translation_filter['to_lang'] ?> <?php echo $lang['code'] ?>
/>     note <?php echo $icl_translation_filter['to_lang'] ?> <?php echo $lang['code'] ?>
post_id, $icl_selected_posts))) echo 'checked="checked"'?> /> post_title ?> estimate_word_count($doc, $icl_translation_filter['from_lang']); $wc += $iclTranslationManagement->estimate_custom_field_word_count($doc->post_id, $icl_translation_filter['from_lang']); ?>  
is_translation){ $note = get_post_meta($doc->post_id, '_icl_translator_note', true); if($note){ $note_text = __('Edit note for the translators', 'sitepress'); $note_icon = 'edit_translation.png'; }else{ $note_text = __('Add note for the translators', 'sitepress'); $note_icon = 'add_translation.png'; } } ?>
disabled="disabled" />
post_type]->labels->singular_name; ?> post_status]; ?> <?php echo $_st ?> <?php echo $st ?>
ICL_TM_DOCS_PER_PAGE){ echo '' . sprintf(__('Show %d documents per page', 'sitepress'), ICL_TM_DOCS_PER_PAGE) . ''; } // pagination $page_links = paginate_links( array( 'base' => add_query_arg('paged', '%#%' ), 'format' => '', 'prev_text' => '«', 'next_text' => '»', 'total' => $wp_query->max_num_pages, 'current' => $_GET['paged'], 'add_args' => isset($icl_translation_filter)?$icl_translation_filter:array() )); ?>
0')?> '); ?>
found_posts > ICL_TM_DOCS_PER_PAGE){ echo '' . __('show all', 'sitepress') . ''; } ?> ' . __( 'Displaying %s–%s of %s', 'sitepress' ) . '%s', number_format_i18n( ( $_GET['paged'] - 1 ) * $wp_query->query_vars['posts_per_page'] + 1 ), number_format_i18n( min( $_GET['paged'] * $wp_query->query_vars['posts_per_page'], $wp_query->found_posts ) ), number_format_i18n( $wp_query->found_posts ), $page_links ); echo $page_links_text; ?>
    get_active_languages()as $lang):?>
  • -  
disabled="disabled" />

get_icl_manually_tranlations_box('icl_cyan_box'); // shows only when translation polling is on and there are translations in progress ?>
icl_account_configured() && $sitepress_settings['icl_html_status']): ?>