$(function() {
  $('.locale .menu li:not(".no-match")').click(function () {
    $('.locale .selector').html($(this).html());
  });
});

$(function() {
  $('.locale-selector .locale .menu li:not(".no-match")').click(function () {
    $('.locale .selector').html($(this).html());
  });
});

Fix preferred locales and homepage selector interferance (#750)