Original: German East Africa was captured by the British during World War I and from then on was referred to as Tanganyika.
Simplified: German East Africa was captured by the British during World War I and its name was changed to Tanganyika.