McDonald’s Corp. will pay $8.5 million to settle a lawsuit accusing the fast-food giant of failing to inform consumers of delays in a plan to reduce fat in the cooking oil used for its popular french fries and other foods.

BanTransFats.com, a nonprofit advocacy group, sued McDonald’s in California state court in 2003, alleging the company did not effectively disclose to the public that it had not switched to a healthier cooking oil.