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) {
?>
' . __('Your translators', 'sitepress') . '';
if (!empty($your_translators))
foreach ($your_translators as $your_translator) {
echo '- ';
if ($current_user->ID == $your_translator->ID) {
$edit_link = 'profile.php';
} else {
$edit_link = esc_url(add_query_arg('wp_http_referer', urlencode(esc_url(stripslashes($_SERVER['REQUEST_URI']))), "user-edit.php?user_id=$your_translator->ID"));
}
echo '' . $your_translator->display_name . ' - ';
foreach ($your_translator->language_pairs as $from => $lp) {
$tos = array();
foreach ($lp as $to => $null) {
$tos[] = $active_languages[$to]['display_name'];
}
printf(__('%s to %s', 'sitepress'), $active_languages[$from]['display_name'], join(', ', $tos));
}
echo '
';
}
if (!empty($other_service_translators)){
$langs = $sitepress->get_active_languages();
foreach ($other_service_translators as $rows){
foreach($rows['langs'] as $from => $lp){
$from = isset($langs[$from]['display_name']) ? $langs[$from]['display_name'] : $from;
$tos = array();
foreach($lp as $to){
$tos[] = isset($langs[$to]['display_name']) ? $langs[$to]['display_name'] : $to;
}
}
echo '- ';
echo '' . $rows['name'] . ' | ' . sprintf(__('%s to %s', 'sitepress'), $from, join(', ', $tos)) . ' | ' . $rows['action'];
echo '
';
}
}
echo '
';
}
?>
';
switch ($sitepress_settings['theme_localization_type']) {
case '1': echo __('Translate the theme by WPML', 'sitepress');
break;
case '2': echo __('Using a .mo file in the theme directory', 'sitepress');
break;
default: echo __('No localization', 'sitepress');
}
echo '';
?>
get_var("SELECT COUNT(id) FROM {$wpdb->prefix}icl_strings WHERE status <> 1");
if ($strings_need_update == 1):
?>
1 string that needs to be updated or translated. ', 'sitepress'), 'admin.php?page=' . basename(ICL_PLUGIN_PATH) . '/menu/string-translation.php&status=0') ?>
%s strings that need to be updated or translated. ', 'sitepress'), 'admin.php?page=' . basename(ICL_PLUGIN_PATH) . '/menu/string-translation.php&status=0', $strings_need_update) ?>