<prompt> Translate the following text to SwahiliAt the end of the century, when Catholic king James II came to the throne, the Irish felt they had no choice but to back him.  <response>: Mwishoni mwa karne hiyo, wakati mfalme Mkatoliki James wa Pili alipochukua kiti cha ufalme, Wairelandi waliona kwamba hawakuwa na chaguo ila kumtegemeza. 