Hello beatanangolo0,
Welcome to Expat.com
Since you are already in Namibia, the best way to get accurate information will be to check with the civil status office about the requirements for a foreigner to marry a local person in Namibia.
You will certainly get all the information and help you need.
All the best,
Cheryl
Expat.com team