'Validates the state of this video Module Instance. This
is the override of the general XBlock method, and it will also ask
its superclass to validate.'

def validate(self):

    validation = super(VideoDescriptor, self).validate()
    if (not isinstance(validation, StudioValidation)):
        validation = StudioValidation.copy(validation)
    no_transcript_lang = []
    for (lang_code, transcript) in self.transcripts.items():
        if (not transcript):
            no_transcript_lang.append([label for (code, label) in settings.ALL_LANGUAGES if (code == lang_code)][0])
    if no_transcript_lang:
        ungettext = self.runtime.service(self, 'i18n').ungettext
        validation.set_summary(StudioValidationMessage(StudioValidationMessage.WARNING, ungettext('There    is    no    transcript    file    associated    with    the    {lang}    language.', 'There    are    no    transcript    files    associated    with    the    {lang}    languages.', len(no_transcript_lang)).format(lang=',    '.join(no_transcript_lang))))
    return validation
