Brand new here, first Minor ever and no technical/electrical hero

Old dyn is C40 part n° 22704J, New one is C40AQ part n° 22791/05
Car is pos. earth, on the new dynamo is written neg. earth
So changed the dynamo but now ign. light doesn't work and dynamo gets warm or rather hot... I removed the connectors
I suppose it has to do with pos. and neg. earth...
Green/Brown lead goes from F to the small connector.
Yellow/Brown lead goes from D to the bigger connector.
Do I simply have to switch the two leads on the dynamo or are there other things I should do ?
What is F and D standing for ?
Thanks for your help !
Greetings from a rainy Belgium
Peter