'Process and validate the initial path.'

def __init__(self, path=None, **options):

    if ((not path) or (path == u'/')):
        path = u'/en-US/'
    path = urlparse(path).path
    assert path.startswith(u'/')
    self.locale = path.split(u'/')[1]
    assert (self.locale in settings.MDN_LANGUAGES)
    super(LinksSource, self).__init__(path, **options)
