I have tried the patch and changed the line in lib.php (line 3010) corespondingly. However, I still get [[typerandom]] as before. Maybe I do something wrong. Here are the location of strings 'typerandom':
grep -ir typerandom moodle/*
moodle/mod/assignment/type/random/lang/sk_utf8/assignment_random.php:$string['typerandom'] = 'Náhodné zadanie';
moodle/mod/assignment/type/random/lang/en_utf8/assignment_random.php:$string['typerandom'] = 'Random assignment';
and this is now around line 3010 of my lib.php
grep -n -C 2 assignment_ moodle/mod/assignment/lib.php
...
3008- $type->type = "assignment&type=$assignmenttype";
3009- //$type->typestr = get_string("type$assignmenttype", 'assignment');
3010: $type->typestr = get_string("type$assignmenttype", 'assignment_'.$assignmenttype);
3011- $types[] = $type;
3012- }
...
Petr - It looks like this was intended; however, the code in assignment lib.php does not follow what get_string expects. The following patch should resolve this. I have also added a todo to look at another area where we attempt to get assignment type name using get_string. Peace - Anthony