wik2dict is a tool I wrote in Python. It converts MediaWiki SQL dumps into the DICT format.
I'm not actively maintaining this anymore, Aard Dictionary seems the way to go.