Ronaldinho has agreed to initial contract terms with A.C. Milan, which will now speak to Barcelona, his current team, about a deal, Milan and Ronaldinho’s agent said.

Ronaldinho, 28, has had a difficult season because of injuries. A Brazilian midfielder, he is out for the rest of the season with a leg injury, and a transfer cannot officially go through until the summer transfer period.

“In general Ronaldinho and Milan are in agreement,” his agent and brother Roberto de Assis was quoted as saying on the Gazzetta dello Sport Web site Saturday.

Gazzetta said a deal through 2012 could be worth $12.6 million a year.

“There is a general agreement with the player,” Adriano Galliani, Milan’s chief executive, said. “Now a deal has to be reached with Barcelona. Give us time.”