Localizing Dates and Numbers in PHP

There are times that English isn’t just the only language in the world, and Gregorian calendar isn’t just the only calendar out there! What would you do in such situation?