How to translate a course with open-source tools

Re: How to translate a course with open-source tools

by Renaat Debleu -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Marco,

I think you also have to implement some extra code to avoid double stamps in the question bank:

$txt = preg_replace_callback("/<stamp>(.*)<\/stamp>/", "make_unique_stamp", $text);
function make_unique_stamp($matches) { '<stamp>' . make_unique_id_code('translated') . '</stamp>'; }