Refactor dictionary languages menu

add separate QMenu subclass for the languages menu under the extras. The menu
populates itself with an action for each available dictionary.