";
} else {
$en_flag = "en";
}
$lang_flag_file = "mod/translation_editor/_graphics/flags/" . $current_language . ".png";
if(file_exists(elgg_get_root_path() . $lang_flag_file)){
$lang_flag = "";
} else {
$lang_flag = $current_language;
}
foreach($search_results as $plugin => $data){
$translated_language = $data["current_language"];
$list .= "
";
$list .= "";
$list .= "";
$list .= "" . $plugin . "";
$list .= " |
";
foreach($data["en"] as $key => $value){
// English information
$list .= "";
$list .= "" . $en_flag . " | ";
$list .= "";
$list .= "";
$list .= "" . nl2br(htmlspecialchars($value)) . " ";
$list .=" | ";
$list .= "
";
// Custom language information
$list .= "";
$list .= "" . $lang_flag . " | ";
$list .= "";
$list .= "";
$list .= " | ";
$list .= "
";
}
$list .= "
";
}
$form_data = elgg_view("input/hidden", array("name" => "current_language", "value" => $current_language));
$form_data .= $list;
$form_data .= elgg_view("input/submit", array("value" => elgg_echo("save")));
$list = elgg_view("input/form", array("body" => $form_data,
"action" => $vars["url"] . "action/translation_editor/translate_search",
"id" => "translation_editor_search_result_form"));
} else {
$list .= elgg_echo("translation_editor:search_results:no_results");
}
echo $list;
?>