Fixed broken language switcher, closes #950