<prompt> Translate the following text to SwahiliHe ruled the non-Portuguese community with Malay kapitan headmen and the foreigners shahbandar harbor-masters.  <response>: Alitawala jumuiya isiyo ya Kireno na wakuu wa Kapteni wa Malay na mabwana wa bandari ya wageni wa shahbandar. 