Actually, the ○○と言うと formation means something like:
Literally - 'if you say ○○'
Smoothly - 'on the subject of ○○'
So, the sentence would be something like:
'On the subject of what people in this area where thinking...'
*I know this isn't a very smooth translation, but if you're trying to figure out what the Japanese is doing, this should give you an idea.