added a comment - - edited
Hi All,
I'm not a native English speaker, but I'll try my best.
I installed the latest version of MRBS with zh_tw_utf8 language package for my school two days ago and I encountered the same problem that "Delete Entry" didn't show up at right side of SAVE button.
I started to check on view_entry.php I figured out something it might help debugging. if I replace .get_string('confirmdel', 'block_mrbs') by string "Do you want to delete?", The "Delete Entry" will show up in browser and the java alert message will pop out too. It worked just fine. I'm not sure if it is the javascript, get_string(), language package or something else causes the problem.
There is one more problem. The variables $series and $repeat_id seem don't get any value, therefore, it will not print out "Delete Series". Any ideas?
<?php
if($id){
if( ! $series )
/* echo "<NOSCRIPT><a id=\"dellink\" HREF=\"del_entry.php?id=$id&series=0\">".get_string('deleteentry','block_mrbs')."</A></NOSCRIPT>"
."<script type=\"text/javascript\">
document.writeln('<a href=\"#\" onClick=\"if(confirm(\'".get_string('confirmdel','block_mrbs')."\')){document.location=\'del_entry.php?id=$id&series=0\';}\">".get_string('deleteentry','block_mrbs')."</a>');
</script>";
*/
// make change on .get_string('confirmdel', 'block_mrbs')
echo "<NOSCRIPT><a id=\"dellink\" HREF=\"del_entry.php?id=$id&series=0\">".get_string('deleteentry','block_mrbs')."</A></NOSCRIPT>"
."<script type=\"text/javascript\">
document.writeln('<a href=\"#\" onClick=\"if(confirm(\'Do you want to delete?\')){document.location='del_entry.php?id=$id&series=0';};}\">".get_string('deleteentry','block_mrbs')."</a>');
</script>";
if($repeat_id)
echo " - ";
if($repeat_id || $series )
echo "<NOSCRIPT><a id=\"dellink\" HREF=\"del_entry.php?id=$id&series=1&day=$day&month=$month&year=$year\">".get_string('deleteentry','block_mrbs')."</A></NOSCRIPT>"
."<script type=\"text/javascript\">
document.writeln('<a href=\"#\" onClick=\"if(confirm(\'".get_string('confirmdel','block_mrbs')."\')){document.location=\'del_entry.php?id=$id&series=1&day=$day&month=$month&year=$year\';}\">".get_string('deleteseries','block_mrbs')."</a>');
</script>";
}
?>
Jens - I have not seen this behavior before. Do you have the admin user setup as being mrbs_admins? I'd be willing to try and figure out what is happening with you but will need more information. As you probably know, I like screen shots. Let me know how I can help. Peace - Anthony