Merge pull request #7970 from edx/shr/bug/TNL-2038-Remove-table-of-contents-transcript-languages
Remove "table of contents" from transcript upload languages
This commit is contained in:
@@ -179,8 +179,6 @@ class VideoModule(VideoFields, VideoTranscriptsMixin, VideoStudentViewHandlers,
|
||||
|
||||
# OrderedDict for easy testing of rendered context in tests
|
||||
sorted_languages = sorted(languages.items(), key=itemgetter(1))
|
||||
if 'table' in other_lang:
|
||||
sorted_languages.insert(0, ('table', 'Table of Contents'))
|
||||
|
||||
sorted_languages = OrderedDict(sorted_languages)
|
||||
return track_url, transcript_language, sorted_languages
|
||||
@@ -442,7 +440,6 @@ class VideoDescriptor(VideoFields, VideoTranscriptsMixin, VideoStudioViewHandler
|
||||
|
||||
languages = [{'label': label, 'code': lang} for lang, label in settings.ALL_LANGUAGES if lang != u'en']
|
||||
languages.sort(key=lambda l: l['label'])
|
||||
languages.insert(0, {'label': 'Table of Contents', 'code': 'table'})
|
||||
editable_fields['transcripts']['languages'] = languages
|
||||
editable_fields['transcripts']['type'] = 'VideoTranslations'
|
||||
editable_fields['transcripts']['urlRoot'] = self.runtime.handler_url(self, 'studio_transcript', 'translation').rstrip('/?')
|
||||
|
||||
Reference in New Issue
Block a user