South African President Cyril Ramaphosa said on Thursday that a nationwide lockdown to try to contain the spread of the coronavirus would be extended by two weeks.