msg='<font color="red">'+_u('Error: user "{0}" should first be added as staff before adding as a forum administrator, cannot add').format(uname)+'</font>'
msg='<font color="red">'+_('Error: user "{0}" should first be added as staff before adding as a forum administrator, cannot add').format(uname)+'</font>'
else:
user.roles.add(role)
msg='<font color="green">'+_u('Added "{0}" to "{1}" forum role = "{2}"').format(user,course.id,rolename)+'</font>'
msg='<font color="green">'+_('Added "{0}" to "{1}" forum role = "{2}"').format(user,course.id,rolename)+'</font>'
msg+='<font color="red">'+_u('Failed to find any background tasks for course "{course}" and module "{problem}".').format(course=course_id,problem=problem_url)+'</font>'
msg+='<font color="red">'+_('Failed to find any background tasks for course "{course}" and module "{problem}".').format(course=course_id,problem=problem_url)+'</font>'