LONDON (AP) — Fabio Capello signed a contract deal Wednesday to ensure he stays as England coach until the 2012 European Championship.

The agreement removes an escape clause that could have let the Italian leave after the World Cup in South Africa.

"I always wanted to stay until the end of my contract," Capello said. "In South Africa, we are totally focused on the World Cup."

The announcement by the Football Association came just before England flew to Johannesburg and seemingly ends the possibility of Capello replacing Jose Mourinho at Inter Milan.

"We're very pleased to have Fabio's commitment for another two years and it's good that we have been able to resolve this before the team flies to South Africa," Club England chairman Dave Richards said. "Now we can all concentrate on the World Cup and give Fabio and the players our full support."

Capello, who has transformed England's fortunes since becoming coach in 2008, will take charge of the team at a major tournament for the first time on June 12 when it takes on the United States in its World Cup opener.