Wash the chicken legs and pat dry. Rub with salt and pepper. Peel garlic and press it through a garlic press. Wash the rosemary, dab dry and remove the needles.
Heat oil in a pan and fry the chicken legs in it until golden brown all around. Add the tomatoes and rosemary and braise everything for 20 minutes. Season with salt and pepper. In the meantime, boil up plenty of salted water.
Leave the rice to soak for 20 minutes. Drain the pineapple and collect the juice. Five minutes before the end of the cooking time, place the pineapple pieces in the pan and warm them up. Drain the rice, put it in the pan and season with salt, pepper, pineapple juice and curry.