Was this transformer wired this way from the facotry?
Usually European line voltage wiring is blue and brown, with blue being the neutral wire for fixtures sent here. Then two blacks being the secondary (12v. in this case). It seems this trans is wired backwards. You should NOT have two blacks as the line voltage input.
Is there any writing or diagrams printed on the trans itself?