Complex sentence: During the colonial era Senegal was colonized by France and many, though not all, Senegalese identified as French instead of any African ethnicity.
Split into simpler sentences: During the colonial era, Senegal was colonized by France, and the people grew to adopt a French identity. Many, though not all, Senegalese identified as French instead of any African ethnicity.