Elgin in Scotland is pronounced with a hard G.
It is a two syllable word – EL and GIN. Pronounce the EL like in TELL and the GIN like in BEGIN.
In International Phonetic Alphabet notation Elgin is written /ˈɛlɡɪn/
In many of the other Elgin’s around the world the G is pronounced soft (like the drink GIN), but not when you pronounce Elgin, Scotland.