It works on the same principle as an electric generator - namely, that moving a wire through a magnetic field induces an electric current in it.
(It; works; on the same principle; T:as an electric generator - namely) (moving a wire through a magnetic field; induces; an electric current; L:in it)
It moving a wire through a magnetic field
works induces
on the same principle T:as an electric generator - namely
an electric current L:in it