def _validate_locale(locale):
    if locale and locale not in settings.SUMO_LANGUAGES:
        raise Http404

    return locale
:returns:
dataset/ETHPy150Open mozilla/kitsune/kitsune/community/views.py/_validate_locale--crossover with--dataset/ETHPy150Open tabo/django-treebeard/treebeard/models.py/Node.get_last_child