Fixed #22328 -- Added --exclude option to compilemessages and makemessages.