<prompt> Translate the following text to SwahiliSeveral times during the next 40 years they attempted to restore the Stuart dynasty to the British throne, though by this time the crown had passed to the German House of Hanover.  <response>: Katika miaka 40 iliyofuata, mara kadhaa walijaribu kurudisha nasaba ya Stuart kwenye kiti cha enzi cha Uingereza, ingawa wakati huo taji lilikuwa limepita kwa nyumba ya Ujerumani ya Hanover. 