From what I can see. Use a multimeter to be sure but most switches are similar.
Position 1 top left - mains "incoming" after your prepaid meter - live/red & neutral/black
Position 2 top right - genset "incoming" from your generator - live/red & neutral/black
Live & neutral corresponding, if you have live/red in the front it must be the same on the other side across.
Take the earth wire (yellow/green) from your existing supply to your genset earth stud.
From the bottom left or right you will connect the outgoing supply to your existing mains circuit breaker. Again red/live in same positions around the switch.
Use 6mm or 10mm house wire.