On December 19, 2008, police officers raided the apartment of Mr. Diadji Diouf, an important leader in the Senegalese lesbian, gay, bisexual and transgender (LGBT) community, and arrested him and seven other men. Mr Diouf, who heads AIDES Senegal, an organization providing HIV prevention services to men who have sex with men (MSM), and his guests were taken to the SICAP Mbao police station where they were detained until December 24 before being transferred to the Maison D’arrêt et de détention de Rebeuss. On January 8, 2008, the nine men appeared in court to respond to charges of criminal conspiracy and engaging in acts against the order of nature. The International Gay and Lesbian Human Rights Commission (IGLHRC) was informed that lawyers for the defense had had limited access to case files and little time to prepare for the court hearing. The men were condemned to a sentence of 8 years in jail although the prosecutor had asked for a sentence of 5 years, which is the maximum penalty provided by Senegalese law in sodomy cases ...
http://www.iglhrc.org/site/iglhrc/section.php?id=5&detail=915HIV/AIDS Policy in Senegal: A Civil Society Perspective
October 2007
OSI
Senegal serves as a model among African countries in its control of HIV/AIDS. The national HIV prevalence rate has been below 1 percent for the past two decades, a success that can be attributed to the country’s timely response to the epidemic. The National AIDS Council has adopted several measures to prevent the spread of HIV/AIDS such as promoting condom use, instituting a sentinel surveillance system, and increasing the number of voluntary counseling and testing sites. However, according to stakeholders interviewed for the Public Health Watch report HIV/AIDS Policy in Senegal: A Civil Society Perspective, more than 20 years into the epidemic, the government has made inadequate efforts to target high-risk groups; update national strategies according to emerging priorities, such as the increasing feminization of AIDS; and provide quality services for people living with HIV/AIDS. Interventions aimed at the general population have helped raise awareness about HIV/AIDS, but these prevention efforts have failed to result in measurable behavioral change. Groups particularly vulnerable to HIV—men who have sex with men, mobile and cross-border populations, young people, and women—have been neglected. Furthermore, although legal sex workers have access to routine health care, unregistered sex workers do not, and they are persecuted by law enforcement agencies, which drives these individuals further underground and makes outreach difficult ...
http://www.soros.org/initiatives/health/focus/phw/articles_publications/publications/senegal_20071015My (entirely unsupported) guess is: the judge was particularly offended by the specific effort to organize in the gay community for AIDS/HIV education and prevention