";
// flag
$lang_flag_file = "mod/translation_editor/_graphics/flags/" . $language . ".png";
if(file_exists(elgg_get_root_path() . $lang_flag_file)){
$list .= "";
$list .= " ";
$list .= " | ";
} else {
$list .= " | ";
}
// language
$list .= "";
if($language != $current_language){
$url = $vars["url"] . "translation_editor/" . $language . "/" . $plugin;
if($language != "en"){
$completeness = translation_editor_get_language_completeness($language);
$list .= "" . elgg_echo($language) . " (" . $completeness . "%)";
if(elgg_is_admin_logged_in() && $completeness == 0){
$list .= elgg_view("output/confirmlink", array("href" => $vars["url"] . "action/translation_editor/delete_language?language=" . $language, "confirm" => elgg_echo("translation_editor:language_selector:remove_language:confirm"), "text" => elgg_view_icon("delete-alt")));
}
} else {
$list .= "" . elgg_echo($language) . "";
}
} else {
if($language != "en"){
$list .= elgg_echo($language) . " (" . translation_editor_get_language_completeness($language) . "%)";
} else {
$list .= elgg_echo($language);
}
}
if($site_language == $language){
$list .= "" . elgg_echo("translation_editor:language_selector:site_language") . "";
}
$list .= " | ";
// checkbox
if(elgg_is_admin_logged_in()){
$list .= "";
if($language != "en"){
$list .= "";
|