<prompt> Translate the following text to EnglishTangu mwaka wa 1912 hadi mwaka wa 1947, nchi hizo zilitawaliwa na Italia, na kabla ya hapo zilikuwa sehemu ya Milki ya Ottoman.  <response>: From 1912 to 1947, they were ruled by Italy; before that, they were part of the Ottoman Empire. 