<prompt> Translate the following text to EnglishMwishoni mwa karne hiyo, wakati mfalme Mkatoliki James wa Pili alipochukua kiti cha ufalme, Wairelandi waliona kwamba hawakuwa na chaguo ila kumtegemeza.  <response>: At 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. 