'Handles [[Video:video title]] with locale from parser.'

def _hook_video(self, parser, space, title):

    message = (_lazy(u'The    video    "%s"    does    not    exist.') % title)
    (title, params) = build_hook_params(title, self.locale, VIDEO_PARAMS)
    if _is_youtube_url(title):
        parsed_url = urlparse(title)
        netloc = parsed_url.netloc
        if (netloc == 'youtu.be'):
            video_id = parsed_url.path[1:]
        else:
            video_id = parse_qs(parsed_url.query)['v'][0]
        self.youtube_videos.append(video_id)
        return (YOUTUBE_PLACEHOLDER % video_id)
    v = get_object_fallback(Video, title, self.locale, message)
    if isinstance(v, basestring):
        return v
    return generate_video(v, params)
