get_active_languages(); foreach ($active_languages as $lang) { if ($default_language != $lang['code']) { $default = ''; } else { $default = ' (' . __('default', 'sitepress') . ')'; } $alanguages_links[] = $lang['display_name'] . $default; } $docs_sent = 0; $docs_completed = 0; $docs_waiting = 0; $docs_statuses = $wpdb->get_results("SELECT status FROM {$wpdb->prefix}icl_translation_status"); foreach ($docs_statuses as $doc_status) { $docs_sent += 1; if ($doc_status->status == ICL_TM_COMPLETE) { $docs_completed += 1; } elseif ($doc_status->status == ICL_TM_WAITING_FOR_TRANSLATOR || $doc_status->status == ICL_TM_IN_PROGRESS) { $docs_waiting += 1; } } ?> settings['setup_complete']): ?>

()

%d are complete, %d waiting for translation.', 'sitepress'), $docs_sent, $docs_completed, $docs_waiting); ?>

ICanLocalize') ?>

get_icl_manually_tranlations_box('icl_cyan_box'); // shows only when translation polling is on and there are translations in progress ?>

%s Learn more %s', 'sitepress'), '', ''); ?> |

1) { ?>