MDL-41659 badges: Display course/site names through format_string()